Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Problem in News Distribution Question from Educational Codeforces round 65

Revision en1, by gauravahlawat81, 2019-05-28 15:26:20

I am getting Memory limit exceeded on my test case #3 , but my algorithm is sure(I guess ?)

Can you please look at my code and tell me what could I possibly be doing wrong.

Thanks in advance.

Code Link: https://codeforces.com/contest/1167/submission/54276749

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English gauravahlawat81 2019-05-28 15:26:20 341 Initial revision (published)