QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#743875#7535. Limited Shuffle Restoringucup-team2172WA 0ms44824kbC++143.7kb2024-11-13 20:12:482024-11-13 20:12:53

詳細信息

Test #1:

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

input:

5
>
<
<
>
>

output:

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

result:

ok yeah, seems ok, spent 5 queries of 13

Test #2:

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

input:

1

output:

! 1

result:

ok yeah, seems ok, spent 0 queries of 6

Test #3:

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

input:

2
>

output:

? 1 2
! 2 1

result:

ok yeah, seems ok, spent 1 queries of 8

Test #4:

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

input:

3
>

output:

? 2 3
! 1 3 2

result:

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