QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#389873#8553. Exchanging Kubicucup-team3057#WA 16ms3800kbC++178.1kb2024-04-14 20:45:202024-04-14 20:45:20

詳細信息

Test #1:

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

input:

2
3
1
0
1
1
5
2
0
3
0
5
4
5
5

output:

? 1 1
? 2 2
? 3 3
? 1 3
! 1 -1000000000000000 1
? 1 1
? 2 2
? 3 3
? 4 4
? 5 5
? 1 3
? 3 5
? 1 5
! 2 -1 3 -1000000000000000 5

result:

ok ok (2 test cases)

Test #2:

score: 0
Accepted
time: 16ms
memory: 3628kb

input:

10000
1
718876398
1
0
1
0
1
0
1
938356223
1
857157125
1
0
1
0
1
0
1
0
1
0
1
965894497
1
0
1
626061677
1
642094813
1
107398046
1
0
1
0
1
0
1
287188651
1
0
1
345108193
1
0
1
0
1
714952783
1
0
1
325760098
1
0
1
800487422
1
322806679
1
0
1
0
1
0
1
866952779
1
741483102
1
492063609
1
0
1
833448280
1
0
1
...

output:

? 1 1
! 718876398
? 1 1
! -1000000000000000
? 1 1
! -1000000000000000
? 1 1
! -1000000000000000
? 1 1
! 938356223
? 1 1
! 857157125
? 1 1
! -1000000000000000
? 1 1
! -1000000000000000
? 1 1
! -1000000000000000
? 1 1
! -1000000000000000
? 1 1
! -1000000000000000
? 1 1
! 965894497
? 1 1
! -10000000000...

result:

ok ok (10000 test cases)

Test #3:

score: -100
Wrong Answer
time: 2ms
memory: 3800kb

input:

1052
9
167536100
0
373372185
0
427949326
442758705
102715118
0
0
373372185
973423149
9
248442934
306962195
570791475
593033322
0
582850731
559429390
0
120053133
2780526396
1142280121
2780526396
10
785691778
0
981032824
0
0
592503870
0
0
0
0
981032824
1112480382
1112480382
10
0
737563509
985502704
42...

output:

? 1 1
? 2 2
? 3 3
? 4 4
? 5 5
? 6 6
? 7 7
? 8 8
? 9 9
? 1 3
? 3 7
! 167536100 -1000000000000000 373372185 -1000000000000000 427949326 442758705 102715118 -1000000000000000 -1000000000000000
? 1 1
? 2 2
? 3 3
? 4 4
? 5 5
? 6 6
? 7 7
? 8 8
? 9 9
? 1 7
? 6 9
? 1 9
! 248442934 306962195 570791475 593033...

result:

wrong answer mss of [1, 8] is incorrect, expected=1487295068, found=1412327335 (test case 7)