957 - Popes

All about problems in Volume 9. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

jporcelli1120
New poster
Posts: 11
Joined: Mon Jan 26, 2015 2:05 pm

Re: 957 - Popes

Post by jporcelli1120 »

Can anybody help me out, point me to a test case (counter example) for my algorithm, or any ideas. Thanks guys, heres my current code,

UPDATE-I literally have no idea why im getting WA now as I am pretty sure about my solution. Any help would be so good

Code: Select all

AC
UPDATE-Beware of possible \n at the end of the input file. I recieved almost a dozen WA because I couldnt understand why my solution wasnt correct until I played around and saw some wierd output when I had \n\n at the end of my input file!! BEWARE
Post Reply

Return to “Volume 9 (900-999)”