QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#744052#7535. Limited Shuffle Restoringucup-team2172WA 0ms44416kbC++144.2kb2024-11-13 20:42:112024-11-13 20:42:12

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 44416kb

input:

1

output:

! 1

result:

ok yeah, seems ok, spent 0 queries of 6

Test #3:

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

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: 0ms
memory: 39084kb

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: 0ms
memory: 40016kb

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: 39820kb

input:

5
>
<
<
<
>
<

output:

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

result:

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