QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#547565#8939. Permutationucup-team1332#WA 59ms3728kbC++98590b2024-09-04 22:55:442024-09-04 22:55:46

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3636kb

input:

3
5
3
2
3
6
6
5
3
1
4
3
3

output:

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

result:

ok Correct (3 test cases)

Test #2:

score: 0
Accepted
time: 59ms
memory: 3628kb

input:

10000
10
2
2
3
5
10
10
10
9
7
7
10
5
1
5
6
6
10
4
4
5
2
1
10
10
6
6
3
2
10
3
3
3
3
2
10
1
5
1
6
7
10
1
3
1
8
6
10
2
4
4
9
10
3
3
1
5
10
4
1
7
9
10
8
7
7
1
2
10
4
1
5
9
10
7
8
7
4
10
5
1
7
10
10
8
8
6
9
10
2
1
2
7
7
10
6
6
8
10
10
1
3
1
8
6
10
7
9
5
1
2
10
7
8
4
1
2
10
3
4
4
10
10
4
4
4
4
10
8
7
7
2
...

output:

? 1 10
? 1 5
? 1 3
? 4 5
! 4
? 1 10
? 6 10
? 9 10
? 6 8
? 6 7
! 6
? 1 10
? 1 5
? 5 8
? 6 8
? 6 7
! 7
? 1 10
? 1 5
? 4 5
? 1 3
? 1 2
! 3
? 1 10
? 6 10
? 4 10
? 1 3
? 1 2
! 1
? 1 10
? 1 5
? 1 3
? 1 3
? 1 2
! 1
? 1 10
? 1 5
? 1 8
? 6 8
? 6 7
! 8
? 1 10
? 1 5
? 1 8
? 6 8
? 6 7
! 7
? 1 10
? 1 5
? 2 8
? 9...

result:

ok Correct (10000 test cases)

Test #3:

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

input:

10000
3
1
2
11
5
5
5
5
4
2
2
19
3
3
4
6
8
8
7
5
7
4
1
2
3
3
1
19
6
6
10
1
1
2
2
2
15
11
11
11
11
12
10
14
1
1
1
1
2
3
16
4
4
1
8
7
7

output:

? 1 3
? 1 2
! 3
? 1 11
? 1 6
? 4 6
? 4 6
? 4 5
! 6
? 1 2
! 1
? 1 19
? 1 10
? 1 5
? 6 10
? 6 8
? 6 9
! 10
? 1 7
? 5 7
? 4 5
? 1 3
? 1 2
! 3
? 1 3
? 1 2
! 2
? 1 19
? 1 10
? 6 10
? 1 5
? 1 3
? 1 2
! 3
? 1 2
! 1
? 1 15
? 9 15
? 9 12
? 9 12
? 11 12
? 9 10
! 9
? 1 14
? 1 7
? 1 4
? 1 4
? 1 2
? 1 3
! 4
? 1 ...

result:

wrong answer Too many queries , n = 16 , now_q 7 (test case 11)