QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#574018#6394. Turn on the LightZhaoZiLongWA 2ms3736kbC++20751b2024-09-18 20:35:362024-09-18 20:35:36

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1
2
2

output:

? 2
? 1
? 3
! 3

result:

ok Correct position at 3

Test #2:

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

input:

10
1
0
1
0
0

output:

? 6
? 1
? 4
? 2
? 3
! 3

result:

ok Correct position at 3

Test #3:

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

input:

9
1
2
1
1

output:

? 5
? 1
? 8
? 6
! 6

result:

ok Correct position at 6

Test #4:

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

input:

8
1
0
1
1

output:

? 5
? 1
? 3
? 2
! 2

result:

ok Correct position at 2

Test #5:

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

input:

7
1
2
3
4
4

output:

? 4
? 1
? 6
? 5
? 7
! 7

result:

ok Correct position at 7

Test #6:

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

input:

6
1
0
1
1

output:

? 4
? 1
? 3
? 2
! 2

result:

ok Correct position at 2

Test #7:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

5
1
2
2

output:

? 3
? 1
? 5
! 5

result:

ok Correct position at 5

Test #8:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

4
1
1

output:

? 3
? 1
! 1

result:

ok Correct position at 1

Test #9:

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

input:

3
1
1

output:

? 2
? 1
! 1

result:

ok Correct position at 1

Test #10:

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

input:

2
1
1

output:

? 2
? 1
! 1

result:

ok Correct position at 1

Test #11:

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

input:

1
0

output:

? 1
! 1

result:

ok Correct position at 1

Test #12:

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

input:

1000000
1
0
1
2
3
4
3
4
3
2
1
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
26

output:

? 500001
? 1
? 250001
? 2
? 375001
? 250002
? 437501
? 375002
? 468751
? 437502
? 453127
? 437503
? 445315
? 437504
? 449221
? 445316
? 451174
? 449222
? 452151
? 451175
? 452639
? 452152
? 452883
? 452640
? 453005
? 452884
? 453066
? 453006
? 453097
? 453067
? 453112
? 453098
? 453120
? 453113
? 45...

result:

wrong answer Wrong answer, more than 1 possible light!