QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#310255#5446. 琪露诺的符卡交换GuanYunchang20 39ms4884kbC++141.6kb2024-01-21 09:47:592024-01-21 09:47:59

详细

Subtask #1:

score: 20
Accepted

Test #1:

score: 20
Accepted
time: 15ms
memory: 4436kb

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:

8778
1 132 1 132
2 132 1 131
2 131 2 131
3 132 1 130
3 131 2 130
3 130 3 130
4 132 1 129
4 131 2 129
4 130 3 129
4 129 4 129
5 132 1 128
5 131 2 128
5 130 3 128
5 129 4 128
5 128 5 128
6 132 1 127
6 131 2 127
6 130 3 127
6 129 4 127
6 128 5 127
6 127 6 127
7 132 1 126
7 131 2 126
7 130 3 126
7 129 4...

result:

ok your solution is correct.

Test #2:

score: 0
Accepted
time: 3ms
memory: 4120kb

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:

105
1 14 1 14
2 14 1 13
2 13 2 13
3 14 1 12
3 13 2 12
3 12 3 12
4 14 1 11
4 13 2 11
4 12 3 11
4 11 4 11
5 14 1 10
5 13 2 10
5 12 3 10
5 11 4 10
5 10 5 10
6 14 1 9
6 13 2 9
6 12 3 9
6 11 4 9
6 10 5 9
6 9 6 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
7 8 7 8
8 14 1 7
8 13 2 7
8 12 3 7
8 11 ...

result:

ok your solution is correct.

Test #3:

score: 0
Accepted
time: 10ms
memory: 4156kb

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:

3403
1 82 1 82
2 82 1 81
2 81 2 81
3 82 1 80
3 81 2 80
3 80 3 80
4 82 1 79
4 81 2 79
4 80 3 79
4 79 4 79
5 82 1 78
5 81 2 78
5 80 3 78
5 79 4 78
5 78 5 78
6 82 1 77
6 81 2 77
6 80 3 77
6 79 4 77
6 78 5 77
6 77 6 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
7 76 7 76
8 82 1 75
8 81 ...

result:

ok your solution is correct.

Test #4:

score: 0
Accepted
time: 27ms
memory: 4884kb

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:

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

result:

ok your solution is correct.

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #5:

score: 0
Wrong Answer
time: 39ms
memory: 4636kb

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:

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

result:

wrong answer exist a kind of card which a person don't hold.

Subtask #3:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%