UVA Problem issue

Revision en2, by chubakueno, 2015-09-26 22:48:14

I have been trying to do UVA "Ahoy, Pirates!" but it seems there is an error somewhere. I have downloaded code that gives AC to test against my solution on test cases generated by a program I wrote and compared the outputs with WinMerge, only to see that they are identical.

One curious thing I noted was that changing M from 101 to 301 in the code converts the Wrong Answer into a Runtime Error, which baffles me. Would you please help me in finding the error in my code, or is there an error somewhere else?

Tags uva

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English chubakueno 2015-09-26 23:19:19 44
en3 English chubakueno 2015-09-26 23:10:36 148
en2 English chubakueno 2015-09-26 22:48:14 29
en1 English chubakueno 2015-09-26 22:46:54 696 Initial revision (published)