QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#744087#7535. Limited Shuffle Restoringucup-team2172WA 4ms39520kbC++144.2kb2024-11-13 20:48:132024-11-13 20:48:19

详细

Test #1:

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

input:

5
>
<
<
<
>
>

output:

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

result:

ok yeah, seems ok, spent 6 queries of 13

Test #2:

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

input:

1

output:

! 1

result:

ok yeah, seems ok, spent 0 queries of 6

Test #3:

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

input:

2
>
>
>

output:

? 1 2
? 1 2
? 1 2
! 2 1

result:

ok yeah, seems ok, spent 3 queries of 8

Test #4:

score: 0
Accepted
time: 4ms
memory: 39520kb

input:

3
>
<
>
<
>

output:

? 2 3
? 3 1
? 2 3
? 2 1
? 2 3
! 3 2 1

result:

ok yeah, seems ok, spent 5 queries of 10

Test #5:

score: 0
Accepted
time: 4ms
memory: 38436kb

input:

4
>
>
>
<
>
<
<
>

output:

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

result:

ok yeah, seems ok, spent 8 queries of 11

Test #6:

score: -100
Wrong Answer
time: 0ms
memory: 37612kb

input:

5
>
<
<
>
<
>

output:

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

result:

wrong answer this is not the only answer, for example, we could have guessed [1, 4, 2, 5, 3]