Stange wrong answer on problem 143A (A. Help Vasilisa the Wise 2)

Revision en2, by zyydoosh, 2019-08-20 01:22:07

I was trying to submit this problem after ensuring the 4 test cases given in the problem,

but I found it gives wrong answer in test 4, even this test case I try to run it, and it gives the correct answer

My submission

in the fourth test case

10 10

10 10

10 10

the answer is -1 and my program actually output -1, but in the submission it said my output is :

8 2

2 0

could anyone explain why !!

Tags c++ 14

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English zyydoosh 2019-08-20 01:24:19 6
en3 English zyydoosh 2019-08-20 01:23:58 55
en2 English zyydoosh 2019-08-20 01:22:07 8
en1 English zyydoosh 2019-08-20 01:21:36 536 Initial revision (published)