QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#107214#6394. Turn on the LightHuangHanShengTL 3ms3740kbC++141.2kb2023-05-20 16:03:162023-05-20 16:03:17

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 3740kb

input:

3
1
1
2

output:

? 2
? 3
? 1
! 3

result:

ok Correct position at 3

Test #2:

score: 0
Accepted
time: 3ms
memory: 3512kb

input:

10
1
2
3
4
5
5
6

output:

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

result:

ok Correct position at 10

Test #3:

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

input:

9
1
2
3
4
5
5
6

output:

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

result:

ok Correct position at 9

Test #4:

score: 0
Accepted
time: 2ms
memory: 3508kb

input:

8
1
2
3
4
5
5
6

output:

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

result:

ok Correct position at 8

Test #5:

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

input:

7
1
2
3
3
4

output:

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

result:

ok Correct position at 7

Test #6:

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

input:

6
1
2
3
3
4

output:

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

result:

ok Correct position at 6

Test #7:

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

input:

5
1
2
3
3
4

output:

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

result:

ok Correct position at 5

Test #8:

score: -100
Time Limit Exceeded

input:

4
1
2
3
3

output:

? 2
? 3
? 1
? 4

result: