ContestFucker's blog

By ContestFucker, history, 4 months 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.com/problemset/problem/474/D.

My Submission==> 55651145

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

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
4 months ago, # |
  Vote: I like it +1 Vote: I do not like it

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

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Hey, you are using bad language.