My C++ code is working fine giving the correct output in my local Code Editor but it shows Runtime Error (exit code: 2147483647) upon submission.

Revision en3, by PR3S1D3NT, 2021-12-21 23:06:23

Hello, I am new and just starting with competitive programming so I am not quite sure as to why this problem has occurred

My Question Problem was-(https://mirror.codeforces.com/contest/1612/problem/B)

And My Solution to it was (http://mirror.codeforces.com/contest/1612/submission/140203265)

Is there something I am overlooking or is something wrong with this code?

Tags constructive algorithms, *900, greedy

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English PR3S1D3NT 2021-12-21 23:06:23 0 (published)
en2 English PR3S1D3NT 2021-12-21 23:05:53 27
en1 English PR3S1D3NT 2021-12-21 23:05:12 521 Initial revision (saved to drafts)