Mohammed_Saad's blog

By Mohammed_Saad, history, 10 months ago, In English,

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. however, this test case I try it, and I'm sure my program output 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 !!

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
10 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Qurdestor (previous revision, new revision, compare).

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Hi for[ https://codeforces.com/problemset/problem/143/A ] what is the wrong here[ https://ideone.com/pk8VRQ ]