5

Strange RUNTIME_ERROR Again

 2 years ago
source link: http://codeforces.com/blog/entry/96645
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Recently i was doing 1607F - Robot on the Board 2 Problem and got RUNTIME_ERROR, Exit code is 2147483647

I used the following lines of code and got ERROR : 134381582

_i += (A[_i][_j] == 'D');
_i -= (A[_i][_j] == 'U');
_j += (A[_i][_j] == 'R');
_j -= (A[_i][_j] == 'L');

while as using these lines of code got AC : 134381437

if (A[_i][_j] == 'D')
    _i++;
else if (A[_i][_j] == 'U')
    _i--;
else if (A[_i][_j] == 'L')
    _j--;
else if (A[_i][_j] == 'R')
    _j++;

on my LOCAL MACHINE it gives me WRONG output. I am confused why is this happening. Let me know if i am missing something


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK