QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#644673#7757. Palm IslandHuangHanShengTL 0ms1524kbC++171.1kb2024-10-16 15:01:382024-10-16 15:01:46

详细

Test #1:

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

input:

2
3
1 2 3
2 3 1
4
1 2 3 4
2 1 3 4

output:

1
2111

result:

ok Correct. (2 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

200
3
3 1 2
2 3 1
4
2 4 1 3
2 1 4 3
4
1 4 2 3
2 1 3 4
5
4 3 2 1 5
2 4 5 3 1
5
2 1 5 4 3
5 2 4 1 3
4
4 3 1 2
1 2 4 3
3
1 2 3
3 1 2
4
1 4 2 3
2 1 4 3
4
1 3 2 4
1 4 3 2
3
3 2 1
1 3 2
3
2 3 1
1 3 2
4
1 4 3 2
3 1 2 4
3
1 2 3
1 3 2
3
3 2 1
2 3 1
5
5 1 3 2 4
2 4 5 1 3
4
4 3 1 2
1 4 3 2
4
1 3 4 2
2 4 3 1
3
...

output:

11
1211
22111
222111211111
2122211121
11
11
21221121
221111
11
21
22111
2111
211
111
21221121
2211211
1

1221111
21221121111
22112111
211
2122112111
2221121222112122211212221121222112122211212221121222112122211212221121222112122211212221121222112122211212221121222112122211212221121222112122211212221...

result: