This program is running fine in eclipse but giving me runtime error on test case 4 in codeforces but I am not getting why?
Problem Link :
https://codeforces.com/problemset/problem/1137/B
Program Link :
Please help me to find why codeforces is giving runtime error on test case 4.
Check out line 28,29 there is a possibility of division by zero So there is a runtime error