QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#310252#5446. 琪露诺的符卡交换GuanYunchang20 34ms6136kbC++141.9kb2024-01-21 09:44:532024-01-21 09:44:53

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 20
Accepted

Test #1:

score: 20
Accepted
time: 12ms
memory: 6136kb

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
1 131 2 132
1 130 3 132
1 129 4 132
1 128 5 132
1 127 6 132
1 126 7 132
1 125 8 132
1 124 9 132
1 123 10 132
1 122 11 132
1 121 12 132
1 120 13 132
1 119 14 132
1 118 15 132
1 117 16 132
1 116 17 132
1 115 18 132
1 114 19 132
1 113 20 132
1 112 21 132
1 111 22 132
1 110 23 132
1 109 24 132
1 10...

result:

ok your solution is correct.

Test #2:

score: 0
Accepted
time: 5ms
memory: 4340kb

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

result:

ok your solution is correct.

Test #3:

score: 0
Accepted
time: 8ms
memory: 5828kb

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
1 81 2 82
1 80 3 82
1 79 4 82
1 78 5 82
1 77 6 82
1 76 7 82
1 75 8 82
1 74 9 82
1 73 10 82
1 72 11 82
1 71 12 82
1 70 13 82
1 69 14 82
1 68 15 82
1 67 16 82
1 66 17 82
1 65 18 82
1 64 19 82
1 63 20 82
1 62 21 82
1 61 22 82
1 60 23 82
1 59 24 82
1 58 25 82
1 57 26 82
1 56 27 82
1 55 28 82
1 54 2...

result:

ok your solution is correct.

Test #4:

score: 0
Accepted
time: 20ms
memory: 5812kb

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
1 2 2 3
1 1 3 3
2 1 3 2
3
1 2 2 3
1 1 3 3
2 1 3 2
0
55
1 10 2 11
1 9 3 11
1 8 4 11
1 7 5 11
1 6 6 11
1 5 7 11
1 4 8 11
1 3 9 11
1 2 10 11
1 1 11 11
2 9 3 10
2 8 4 10
2 7 5 10
2 6 6 10
2 5 7 10
2 4 8 10
2 3 9 10
2 2 10 10
2 1 11 10
3 8 4 9
3 7 5 9
3 6 6 9
3 5 7 9
3 4 8 9
3 3 9 9
3 2 10 9
3 1 11 9
4...

result:

ok your solution is correct.

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #5:

score: 0
Wrong Answer
time: 34ms
memory: 4564kb

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

result:

wrong answer exist a card swapped twice.

Subtask #3:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%