QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#236335#7729. Permutation Compression IIucup-team1277WA 130ms3644kbC++171.2kb2023-11-03 21:01:502023-11-03 21:01:51

詳細信息

Test #1:

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

input:

2
3
3 1 2
3
1 2 3

output:

2 1
1 
3 0


result:

ok ok n = 3

Test #2:

score: -100
Wrong Answer
time: 130ms
memory: 3644kb

input:

100000
7
2 6 7 1 4 3 5
6
1 5 6 3 2 4
3
1 2 3
3
2 1 3
14
9 6 13 10 4 7 5 14 1 12 8 3 2 11
3
1 2 3
14
1 9 3 14 5 7 4 6 12 2 8 11 13 10
8
7 1 3 6 2 5 8 4
16
9 3 4 8 7 16 10 6 11 1 14 2 13 12 5 15
3
3 1 2
33
9 10 23 3 16 1 19 32 25 4 5 31 28 7 22 27 30 8 6 17 2 14 13 29 20 33 26 18 24 11 12 15 21
2
2 1
...

output:

3 4
4 5 6 7 
3 3
4 5 6 
3 0

2 1
2 
4 10
1 3 4 5 7 8 9 10 12 13 
3 0

7 7
2 4 7 8 9 10 14 
4 4
1 5 6 8 
7 9
1 5 6 8 10 12 13 14 15 
2 1
1 
9 24
1 2 3 5 6 7 8 9 12 13 15 16 17 19 20 21 22 23 24 25 26 27 28 29 
1 1
2 
2 1
3 
1 0

2 2
2 3 
5 9
2 3 4 5 6 7 9 11 13 
2 3
3 4 5 
6 10
3 4 6 8 9 10 11 12 14 ...

result:

wrong answer x is not prefix maximum