QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#479155#8719. 后继GuanYunchangWA 2ms15992kbC++231.6kb2024-07-15 15:28:222024-07-15 15:28:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 15992kb

input:

5 1
1 2 3 4 5
4
1
-1

output:

? 5
? 2
? 4
! 3

result:

ok 1 number(s): "3"

Test #2:

score: 0
Accepted
time: 1ms
memory: 13900kb

input:

1 1
0

output:

! 0

result:

ok 1 number(s): "0"

Test #3:

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

input:

10 10
380864879 387438357 21484978 21099484 375657510 23189485 24467021 379687119 386094773 15156199
-1
6
4
2
-1
10
10
6
10
5
4
7
4
6
10
3
-1
5
4
6
-1
5
-1
10
10
6
4
5
10
-1
10
6
10
5
2
1
6
10
10
5
10
4
4
6
-1
5
3
2
4
-1
-1
9
3
9
8
4
4
5
6
9

output:

? 3
? 7
? 6
? 8
? 3
? 9
! 271581184
? 3
? 7
? 3
? 8
? 6
? 5
! 294649856
? 3
? 7
? 6
? 8
? 10
? 9
! 269746176
? 3
? 7
? 6
? 8
? 6
? 9
! 278134784
? 3
? 7
? 6
? 8
? 3
? 5
! 28311552
? 3
? 7
? 3
? 8
? 10
? 9
! 277872640
? 3
? 7
? 7
? 1
? 7
? 5
! 293601280
? 3
? 7
? 6
? 8
? 10
? 5
! 294912000
? 3
? 7
? ...

result:

wrong answer 2nd numbers differ - expected: '296747008', found: '294649856'