Codeforces celebrates 10 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link https://codeforces.com/10years. ×

Runtime Error on test case 21

Revision en1, by 2017ceb1029, 2019-12-15 19:39:20

The problem link is : B level And it passes 20 tests but fails on 21st. In an online compiler "CODE" works fine, for the same test case, by failure I mean RUNTIME_ERROR. Any help would be appreciated. The same code first failed at test case 26th, which i noticed was due to less allocated memory when I tripled the allocated space, it fails at 21st case which gives correct output in the other compiler.

Thanks

Tags #greedy, #math, #memory, #error

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English 2017ceb1029 2019-12-15 19:39:20 595 Initial revision (published)