10963 - The Swallowing Ground

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

Moderator: Board moderators

moxlotus
New poster
Posts: 31
Joined: Sat Sep 17, 2011 6:47 am

Re: 10963 - The Swallowing Ground

Post by moxlotus » Mon Dec 08, 2014 10:32 am

Code: Select all

AC
Still Getting wrong ans after reading all the posts here. Can someone give me the critical case that i did not cover?
Last edited by moxlotus on Thu Dec 11, 2014 2:15 pm, edited 1 time in total.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 10963 - The Swallowing Ground

Post by brianfry713 » Mon Dec 08, 2014 10:56 pm

You are resetting diff to 2000000000 at every column.
You will also need to continue reading the input all the way to the end even if the gaps don't match.
Check input and AC output for thousands of problems on uDebug!

moxlotus
New poster
Posts: 31
Joined: Sat Sep 17, 2011 6:47 am

Re: 10963 - The Swallowing Ground

Post by moxlotus » Thu Dec 11, 2014 2:15 pm

brianfry713 wrote:You are resetting diff to 2000000000 at every column.
You will also need to continue reading the input all the way to the end even if the gaps don't match.
oops... silly mistake. D=

Post Reply

Return to “Volume 109 (10900-10999)”