Hello,
I have been spinning my head around this test case for a while now.
Could you please provide the full test case grid?
I thought it was the overflow of the unsigned long long value, but this didn't work.
I thought it was the memory limit, but apparently this wasn't the case.
I tried to mimic the grid by using this form;
0 3 3 3 3 3 3 3 3
And then, my solution outputs the correct value of 3 in the missing cell. (Isn't it?)
Any hints will be appreciated!
Thank you!
Problem Link: http://codeforces.me/contest/711/problem/B Problem Solution: http://codeforces.me/contest/711/submission/20392397