QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#540636#8939. Permutationucup-team3641#WA 139ms7560kbC++201.1kb2024-08-31 17:34:382024-08-31 17:34:41

详细

Test #1:

score: 100
Accepted
time: 43ms
memory: 7464kb

input:

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

output:

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

result:

ok Correct (3 test cases)

Test #2:

score: 0
Accepted
time: 139ms
memory: 7560kb

input:

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

output:

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

result:

ok Correct (10000 test cases)

Test #3:

score: -100
Wrong Answer
time: 47ms
memory: 7524kb

input:

10000
3
1
2
11
5
3
8
8
8
7
2
2
19
3
4
13
16
13
12

output:

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

result:

wrong answer Too long queries, n = 19, now length 59 (test case 4)