why this code doesn't work for interactive problem?

Правка en4, от aminnajafvand, 2016-09-13 11:53:19

in the name of allah, most mercifull

i try to solve this problem

but it gives me wrong answer on test 1

here is my code

logic is correct and i think it doesn't work because it is interactive

i hope somebody guide me.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский aminnajafvand 2016-09-13 11:53:19 86
en3 Английский aminnajafvand 2016-09-13 11:44:39 25 Tiny change: '/20561573)' -> '/20561573)\n\n\n\nlogic is correct.'
en2 Английский aminnajafvand 2016-09-13 11:37:06 41
en1 Английский aminnajafvand 2016-09-13 11:35:24 315 Initial revision (published)