QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#227290#5446. 琪露诺的符卡交换ZhaoZiLong20 28ms8732kbC++202.7kb2023-10-27 10:27:002023-10-27 10:27:01

详细

Subtask #1:

score: 20
Accepted

Test #1:

score: 20
Accepted
time: 16ms
memory: 8620kb

input:

7
132
96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 96 ...

output:

8646
2 132 1 131
3 132 1 130
3 131 2 130
4 132 1 129
4 131 2 129
4 130 3 129
5 132 1 128
5 131 2 128
5 130 3 128
5 129 4 128
6 132 1 127
6 131 2 127
6 130 3 127
6 129 4 127
6 128 5 127
7 132 1 126
7 131 2 126
7 130 3 126
7 129 4 126
7 128 5 126
7 127 6 126
8 132 1 125
8 131 2 125
8 130 3 125
8 129 4...

result:

ok your solution is correct.

Test #2:

score: 0
Accepted
time: 7ms
memory: 7260kb

input:

8
14
13 13 13 13 13 13 13 13 13 13 13 13 13 13
7 7 7 7 7 7 7 7 7 7 7 7 7 7
8 8 8 8 8 8 8 8 8 8 8 8 8 8
14 14 14 14 14 14 14 14 14 14 14 14 14 14
5 5 5 5 5 5 5 5 5 5 5 5 5 5
4 4 4 4 4 4 4 4 4 4 4 4 4 4
1 1 1 1 1 1 1 1 1 1 1 1 1 1
10 10 10 10 10 10 10 10 10 10 10 10 10 10
2 2 2 2 2 2 2 2 2 2 2 2 2 2
9...

output:

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

result:

ok your solution is correct.

Test #3:

score: 0
Accepted
time: 11ms
memory: 5436kb

input:

4
82
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1...

output:

3321
2 82 1 81
3 82 1 80
3 81 2 80
4 82 1 79
4 81 2 79
4 80 3 79
5 82 1 78
5 81 2 78
5 80 3 78
5 79 4 78
6 82 1 77
6 81 2 77
6 80 3 77
6 79 4 77
6 78 5 77
7 82 1 76
7 81 2 76
7 80 3 76
7 79 4 76
7 78 5 76
7 77 6 76
8 82 1 75
8 81 2 75
8 80 3 75
8 79 4 75
8 78 5 75
8 77 6 75
8 76 7 75
9 82 1 74
9 81 ...

result:

ok your solution is correct.

Test #4:

score: 0
Accepted
time: 28ms
memory: 8732kb

input:

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

output:

3
2 3 1 2
3 3 1 1
3 2 2 1
3
2 3 1 2
3 3 1 1
3 2 2 1
0
55
2 11 1 10
3 11 1 9
3 10 2 9
4 11 1 8
4 10 2 8
4 9 3 8
5 11 1 7
5 10 2 7
5 9 3 7
5 8 4 7
6 11 1 6
6 10 2 6
6 9 3 6
6 8 4 6
6 7 5 6
7 11 1 5
7 10 2 5
7 9 3 5
7 8 4 5
7 7 5 5
7 6 6 5
8 11 1 4
8 10 2 4
8 9 3 4
8 8 4 4
8 7 5 4
8 6 6 4
8 5 7 4
9 11 ...

result:

ok your solution is correct.

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #5:

score: 0
Wrong Answer
time: 23ms
memory: 8664kb

input:

5
17
9 9 9 9 9 9 9 9 9 9 9 9 9 2 9 9 9
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6
2 2 2 2 2 2 2 2 2 2 2 2 11 2 2 2 2
4 4 4 4 4 4 10 4 4 4 4 4 4 4 4 4 4
10 10 10 10 10 10 8 10 10 10 10 10 10 10 10 10 10
12 12 12 12 12 12 12 12 12 12 12 12 14 12 12 12 12
14 14 14 14 14 14 14 14 14 14 14 12 14 14 14 14 14
16 16...

output:

136
2 16 1 16
3 17 1 15
3 16 2 14
4 0 1 13
4 17 2 13
4 16 3 14
5 17 1 12
5 16 2 12
5 15 3 12
5 14 4 14
6 17 1 11
6 16 2 11
6 15 3 11
6 14 4 13
6 12 5 12
7 17 1 10
7 16 2 10
7 15 3 10
7 14 4 12
7 13 5 11
7 12 6 11
8 17 1 9
8 16 2 9
8 15 3 9
8 14 4 11
8 13 5 10
8 12 6 10
8 11 7 10
9 17 1 14
9 16 2 8
9...

result:

wrong answer you swapped a card not existed.

Subtask #3:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%