BanazadehAria's blog

By BanazadehAria, history, 5 years ago, In English

Hi, In this question I posted my code by it seems that it gets overflow at some point of my code.

But I'm getting %MOD every time I want to subtract or sum things.

Problem link ==> https://codeforces.net/problemset/problem/474/D.

My Submission==> 55651145

  • Vote: I like it
  • -11
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by BanazadehAria (previous revision, new revision, compare).

»
5 years ago, # |
  Vote: I like it +1 Vote: I do not like it

for(int i=0;i<100000;++i) dp[i]=-1;

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Hey, you are using bad language.