In judge compiler given WA , But in my compiler gives correct output

Revision en1, by daihan, 2017-04-01 17:15:24

Hello codeforces community , i am trying to solve this problem :link . I am getting WA in test 15 , but i copied the test case on my compiler codeblocks , it gives correct output which judge want (expected output) . In judge compiler they saying my code gives output 2 , but i checked in my compiler which gives output 1 , which is correct . Dont know why this happening .

My code : https://pastebin.com/NE3sRLrR

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English daihan 2017-04-01 17:15:24 530 Initial revision (published)