Блог пользователя ashish_nar

Автор ashish_nar, история, 5 лет назад, По-английски

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 :

https://ideone.com/fHQiiH

Please help me to find why codeforces is giving runtime error on test case 4.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Check out line 28,29 there is a possibility of division by zero So there is a runtime error