I submitted a solution to problem 1025B - Weakened Common Divisor .I'm getting Runtime Error "Exit code is -1073741819." I'm getting the error for testcase 1.
Here's the submission link: http://mirror.codeforces.com/contest/1025/submission/41911755 .