QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#380937#6394. Turn on the LightHuangHanShengWA 1ms3688kbC++17496b2024-04-07 15:13:552024-04-07 15:13:56

详细

Test #1:

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

input:

3
1
2
2

output:

? 1
? 2
? 3
! 3

result:

ok Correct position at 3

Test #2:

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

input:

10
1
2
3
2
1
1

output:

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

result:

ok Correct position at 4

Test #3:

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

input:

9
1
2
3
4
3
3

output:

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

result:

ok Correct position at 7

Test #4:

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

input:

8
1
2
3
2
2

output:

? 1
? 2
? 3
? 6
? 5
! 5

result:

ok Correct position at 5

Test #5:

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

input:

7
1
2
3
4
5
5

output:

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

result:

ok Correct position at 7

Test #6:

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

input:

6
1
2
3
2
2

output:

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

result:

ok Correct position at 4

Test #7:

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

input:

5
1
2
3
3

output:

? 1
? 2
? 3
? 4
! 4

result:

ok Correct position at 4

Test #8:

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

input:

4
1
2
3
3

output:

? 1
? 2
? 3
? 4
! 4

result:

ok Correct position at 4

Test #9:

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

input:

3
1
1

output:

? 1
? 2
! 2

result:

ok Correct position at 2

Test #10:

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

input:

2
1
1

output:

? 1
? 2
! 2

result:

ok Correct position at 2

Test #11:

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

input:

1
0

output:

? 1
! 1

result:

ok Correct position at 1

Test #12:

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

input:

1000000
1
2
3
2
1
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
16

output:

? 1
? 2
? 3
? 500002
? 250003
? 125003
? 62503
? 93753
? 109378
? 117191
? 121097
? 123050
? 124027
? 124515
? 124759
? 124881
? 124942
? 124973
? 124988
? 124996
? 125000
? 125002
? 125003
! 125003

result:

wrong answer Wrong answer, more than 1 possible light!