kushwah_1's blog

By kushwah_1, history, 4 years ago, In English

I am trying to solve this since a lot of time but getting wrong answer for larger value of N. Here is [Removed ]. I have solved successfully this problem which is exactly same problem but with small constraints. I am not able to figure out what is wrong with this solution. Any help would be appreciated !!!

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

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

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

»
4 years ago, # |
Rev. 2   Vote: I like it +2 Vote: I do not like it

It is literally the same problem...

P.S. change int ans[N] to ll ans[N].