QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#770856#9176. Non-Interactive NimjoshuaWA 100ms3760kbC++1422.8kb2024-11-22 00:54:142024-11-22 00:54:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3672kb

input:

2
4
4 2 7 1
4
1 1 1 1

output:

3
3 4
3 2
4 1
-1

result:

ok OK 1 yes 1 no (2 test cases)

Test #2:

score: 0
Accepted
time: 15ms
memory: 3680kb

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:

2
1 2
1 1
1
1 2
2
1 2
1 1
1
1 2
2
1 2
1 1
2
1 2
1 1
1
1 1
1
1 1
1
1 1
1
1 2
1
1 2
2
1 2
1 1
1
1 2
1
1 1
2
1 2
1 1
1
1 1
1
1 1
1
1 1
2
1 2
1 1
1
1 1
1
1 1
2
1 2
1 1
1
1 2
2
1 2
1 1
2
1 2
1 1
1
1 2
1
1 1
2
1 2
1 1
1
1 2
1
1 2
2
1 2
1 1
2
1 2
1 1
1
1 1
1
1 1
1
1 1
2
1 2
1 1
2
1 2
1 1
1
1 1
1
1 1
2
1 2
...

result:

ok OK 50000 yes 0 no (50000 test cases)

Test #3:

score: -100
Wrong Answer
time: 100ms
memory: 3760kb

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:

10
1 89846347117756416
2 89846347117690880
2 32768
2 16384
2 1024
2 512
2 256
2 128
2 32
2 2
9
1 416235892302413824
2 416235892302217216
2 16384
2 2048
2 1024
2 64
2 32
2 4
2 1
11
1 332154513003380736
2 332154513003249664
2 65536
2 32768
2 2048
2 512
2 256
2 32
2 16
2 8
2 1
12
1 43960216631640064
2 ...

result:

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