Code: Select all
AC
Moderator: Board moderators
Code: Select all
AC
oops... silly mistake. D=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.