why this code doesn't work for interactive problem?

Revision en4, by 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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English aminnajafvand 2016-09-13 11:53:19 86
en3 English aminnajafvand 2016-09-13 11:44:39 25 Tiny change: '/20561573)' -> '/20561573)\n\n\n\nlogic is correct.'
en2 English aminnajafvand 2016-09-13 11:37:06 41
en1 English aminnajafvand 2016-09-13 11:35:24 315 Initial revision (published)