ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1351. Good Gnusmas – Dead Gnusmas

Hard tests
Posted by ValentinPerm 21 Mar 2014 12:10
input#1:
30000 30000 29999 -29999 -30000
12
19999 19996
19999 19997
19999 19998
19999 19999
19999 20000
19999 20001
19999 20002
19999 20003
19998 19996
19998 19997
19998 19998
19998 19999

output#1:
YES
YES
YES
NO
NO
NO
NO
NO
YES
YES
NO
NO

input#2:
30000 29999 30000 -30000 -29999
12
19999 19996
19999 19997
19999 19998
19999 19999
19999 20000
19999 20001
19999 20002
19999 20003
19998 19996
19998 19997
19998 19998
19998 19999

ouput#2:
NO
NO
NO
NO
YES
YES
YES
YES
NO
NO
NO
YES
Re: Hard tests
Posted by [RISE] Levon Oganesyan [RAU] 8 Oct 2014 01:06
First test is incorrect.