QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#364390#6394. Turn on the LightZhaoZiLongWA 1ms3836kbC++201.1kb2024-03-24 14:15:402024-03-24 14:15:41

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1
1

output:

? 2
? 3
! 3

result:

ok Correct position at 3

Test #2:

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

input:

10
1
2
3
4
5
6
6

output:

? 6
? 10
? 3
? 9
? 2
? 8
? 1
! 1

result:

ok Correct position at 1

Test #3:

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

input:

9
1
2
3
4
5
6
6

output:

? 5
? 9
? 3
? 8
? 2
? 7
? 1
! 1

result:

ok Correct position at 1

Test #4:

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

input:

8
1
2
3
4
5
6
6

output:

? 5
? 8
? 3
? 7
? 2
? 6
? 1
! 1

result:

ok Correct position at 1

Test #5:

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

input:

7
1
2
3
4
4

output:

? 4
? 7
? 2
? 6
? 1
! 1

result:

ok Correct position at 1

Test #6:

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

input:

6
1
2
3
4
4

output:

? 4
? 6
? 2
? 5
? 1
! 1

result:

ok Correct position at 1

Test #7:

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

input:

5
1
2
3
4
4

output:

? 3
? 5
? 2
? 4
? 1
! 1

result:

ok Correct position at 1

Test #8:

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

input:

4
1
2
3
3

output:

? 3
? 4
? 2
? 1
! 1

result:

ok Correct position at 1

Test #9:

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

input:

3
1
1

output:

? 2
? 3
! 3

result:

ok Correct position at 3

Test #10:

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

input:

2
1
1

output:

? 2
? 1
! 1

result:

ok Correct position at 1

Test #11:

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

input:

1
0

output:

? 1
! 1

result:

ok Correct position at 1

Test #12:

score: -100
Wrong Answer
time: 1ms
memory: 3752kb

input:

1000000
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
27
28
29
30
31
32
31
32
31
32
31
32
31
32
32

output:

? 500001
? 1000000
? 250001
? 999999
? 125001
? 999998
? 62501
? 999997
? 31251
? 999996
? 15626
? 999995
? 7813
? 999994
? 3907
? 999993
? 1954
? 999992
? 977
? 999991
? 489
? 999990
? 245
? 999989
? 123
? 999988
? 62
? 999987
? 31
? 999986
? 16
? 999985
? 8
? 999984
? 4
? 999983
? 2
? 999982
? 1
?...

result:

wrong answer Wrong answer, more than 1 possible light!