QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#518689#9176. Non-Interactive Nimucup-team1002#WA 18ms3840kbC++232.7kb2024-08-14 00:50:582024-08-14 00:50:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3840kb

input:

2
4
4 2 7 1
4
1 1 1 1

output:

3
3 7
1 3
4 1
-1

result:

ok OK 1 yes 1 no (2 test cases)

Test #2:

score: 0
Accepted
time: 14ms
memory: 3584kb

input:

50000
2
3 3
2
2 2
2
3 3
2
2 2
2
3 3
2
3 3
2
1 1
2
1 1
2
1 1
2
2 2
2
2 2
2
3 3
2
2 2
2
1 1
2
3 3
2
1 1
2
1 1
2
1 1
2
3 3
2
1 1
2
1 1
2
3 3
2
2 2
2
3 3
2
3 3
2
2 2
2
1 1
2
3 3
2
2 2
2
2 2
2
3 3
2
3 3
2
1 1
2
1 1
2
1 1
2
3 3
2
3 3
2
1 1
2
1 1
2
3 3
2
2 2
2
2 2
2
2 2
2
1 1
2
1 1
2
2 2
2
2 2
2
1 1
2
3 3
...

output:

1
2 3
1
2 2
1
2 3
1
2 2
1
2 3
1
2 3
1
2 1
1
2 1
1
2 1
1
2 2
1
2 2
1
2 3
1
2 2
1
2 1
1
2 3
1
2 1
1
2 1
1
2 1
1
2 3
1
2 1
1
2 1
1
2 3
1
2 2
1
2 3
1
2 3
1
2 2
1
2 1
1
2 3
1
2 2
1
2 2
1
2 3
1
2 3
1
2 1
1
2 1
1
2 1
1
2 3
1
2 3
1
2 1
1
2 1
1
2 3
1
2 2
1
2 2
1
2 2
1
2 1
1
2 1
1
2 2
1
2 2
1
2 1
1
2 3
1
2 3
...

result:

ok OK 50000 yes 0 no (50000 test cases)

Test #3:

score: -100
Wrong Answer
time: 18ms
memory: 3688kb

input:

50000
2
89846347117873058 89846347117873058
2
416235892302498917 416235892302498917
2
332154513003612985 332154513003612985
2
43960216631774959 43960216631774959
2
353215896487285554 353215896487285554
2
38296945667390613 38296945667390613
2
209150071115726640 209150071115726640
2
48610805835417777 ...

output:

1
2 -732706910
1
2 -1217049499
1
2 236948281
1
2 -2003431697
1
2 -2027597006
1
2 -2105754475
1
2 -1382432976
1
2 907069617
1
2 -1590423279
1
2 -184398503
1
2 1362194955
1
2 -538128596
1
2 -1851726319
1
2 1712060750
1
2 1654165883
1
2 -1342859856
1
2 -1453378331
1
2 401622420
1
2 -664206506
1
2 -2108...

result:

wrong answer Integer parameter [name=x] equals to -732706910, violates the range [1, 89846347117873058] (test case 1)