QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#75302 | #5446. 琪露诺的符卡交换 | ZhangYiDe | 100 ✓ | 15ms | 4400kb | C++14 | 2.1kb | 2023-02-04 19:43:10 | 2023-02-04 19:43:13 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 20
Accepted
Test #1:
score: 20
Accepted
time: 5ms
memory: 4200kb
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 8 2 132 1 67 3 52 1 18 4 29 1 21 5 74 1 57 6 49 1 40 7 67 1 124 8 53 1 17 9 1 1 33 10 123 1 95 11 52 1 92 12 100 1 106 13 127 1 122 14 55 1 65 15 110 1 128 16 70 1 23 17 53 1 15 18 27 1 109 19 13 1 93 20 92 1 88 21 127 1 132 22 35 1 58 23 83 1 101 24 132 1 116 25 45 1 108 26 26 1 100 27 127 1...
result:
ok your solution is correct.
Test #2:
score: 0
Accepted
time: 1ms
memory: 3972kb
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 6 2 6 1 3 3 4 1 11 4 7 1 13 5 4 1 2 6 9 1 10 7 3 1 9 8 3 1 14 9 1 1 8 10 1 1 1 11 2 1 5 12 14 1 4 13 13 1 12 14 11 2 5 3 10 2 9 4 14 2 13 5 10 2 10 6 13 2 8 7 7 2 11 8 10 2 1 9 7 2 12 10 6 2 3 11 1 2 4 12 5 2 14 13 5 2 2 14 3 3 7 4 3 3 8 5 14 3 2 6 5 3 14 7 5 3 13 8 8 3 12 9 11 3 3 10 10 3 9 11...
result:
ok your solution is correct.
Test #3:
score: 0
Accepted
time: 4ms
memory: 3824kb
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 7 2 34 1 14 3 18 1 47 4 47 1 54 5 52 1 77 6 17 1 16 7 27 1 22 8 63 1 32 9 79 1 46 10 77 1 31 11 10 1 55 12 32 1 59 13 53 1 29 14 37 1 36 15 28 1 2 16 18 1 53 17 79 1 27 18 15 1 52 19 3 1 45 20 6 1 57 21 1 1 37 22 73 1 74 23 19 1 79 24 30 1 60 25 3 1 8 26 68 1 58 27 31 1 26 28 19 1 48 29 3 1 7...
result:
ok your solution is correct.
Test #4:
score: 0
Accepted
time: 5ms
memory: 3912kb
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 1 2 3 1 2 3 1 2 1 3 2 3 1 1 2 1 1 2 3 1 2 3 3 3 0 55 1 11 2 6 1 8 3 2 1 9 4 6 1 7 5 11 1 2 6 1 1 10 7 4 1 1 8 6 1 5 9 10 1 6 10 1 1 3 11 2 2 3 3 3 2 2 4 8 2 1 5 4 2 11 6 8 2 4 7 1 2 5 8 9 2 7 9 9 2 9 10 6 2 10 11 4 3 9 4 11 3 6 5 1 3 1 6 2 3 10 7 11 3 11 8 8 3 4 9 2 3 7 10 8 3 5 11 10 4 5 5 7 4 ...
result:
ok your solution is correct.
Subtask #2:
score: 20
Accepted
Dependency #1:
100%
Accepted
Test #5:
score: 20
Accepted
time: 8ms
memory: 3908kb
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 6 2 15 1 5 3 2 1 15 4 6 1 12 5 2 1 2 6 15 1 11 7 2 1 14 8 8 1 1 9 14 1 10 10 11 1 4 11 6 1 13 12 1 1 17 13 8 1 3 14 5 1 7 15 17 1 16 16 1 1 9 17 3 2 1 3 1 2 12 4 8 2 7 5 1 2 4 6 8 2 3 7 9 2 17 8 9 2 8 9 13 2 5 10 6 2 14 11 13 2 10 12 7 2 9 13 2 2 13 14 12 2 11 15 14 2 6 16 11 2 2 17 1 3 16 4 4...
result:
ok your solution is correct.
Test #6:
score: 0
Accepted
time: 7ms
memory: 4076kb
input:
9 1 1 28 2 2 2 2 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 7 24 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 8 13 13 13 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 16 8 8 8 8 8 8 8 8 8 8 8 8 17 24 24 24 24 24 24 24 24 24 24 24 24...
output:
0 378 1 2 2 11 1 6 3 20 1 13 4 3 1 28 5 5 1 4 6 11 1 3 7 22 1 9 8 7 1 11 9 17 1 17 10 15 1 19 11 7 1 24 12 12 1 16 13 2 1 8 14 19 1 5 15 9 1 23 16 25 1 7 17 10 1 15 18 3 1 18 19 16 1 22 20 4 1 12 21 6 1 1 22 3 1 27 23 25 1 21 24 4 1 14 25 2 1 20 26 27 1 26 27 26 1 10 28 1 2 22 3 10 2 6 4 4 2 28 5 15...
result:
ok your solution is correct.
Test #7:
score: 0
Accepted
time: 1ms
memory: 4172kb
input:
9 22 19 19 19 19 19 19 19 19 19 10 19 19 19 19 19 19 19 19 19 19 19 19 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 8 21 21 21 21 21 21 21 21 5 21 21 21 21 21 21 21 21 21 21 21 21 21 12 12 12 12 12 12 12 22 12 12 12 12 12 12 12 12 12 12 12 12 12 12 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3...
output:
231 1 5 2 13 1 9 3 19 1 22 4 6 1 21 5 5 1 20 6 1 1 13 7 15 1 4 8 2 1 12 9 5 1 10 10 21 1 19 11 9 1 1 12 17 1 11 13 18 1 3 14 10 1 15 15 9 1 2 16 1 1 6 17 19 1 16 18 10 1 8 19 17 1 7 20 6 1 17 21 22 1 18 22 16 2 10 3 10 2 2 4 21 2 6 5 20 2 12 6 16 2 15 7 7 2 16 8 7 2 8 9 7 2 22 10 11 2 19 11 4 2 20 1...
result:
ok your solution is correct.
Test #8:
score: 0
Accepted
time: 4ms
memory: 3828kb
input:
8 29 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 6 3 3 3 3 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 3 11 11 11 11 11 11 11 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 23 1 1 1 1 1 1 1 20 20 20 20 20 20 20 20 20 20 20 25 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 26 26...
output:
406 1 6 2 4 1 28 3 1 1 9 4 5 1 26 5 16 1 2 6 8 1 1 7 4 1 29 8 27 1 20 9 4 1 10 10 6 1 3 11 22 1 14 12 5 1 7 13 27 1 12 14 20 1 25 15 7 1 21 16 22 1 17 17 5 1 15 18 13 1 19 19 27 1 18 20 26 1 4 21 28 1 5 22 14 1 11 23 28 1 13 24 9 1 8 25 11 1 24 26 13 1 16 27 2 1 27 28 29 1 23 29 19 2 6 3 6 2 1 4 21 ...
result:
ok your solution is correct.
Subtask #3:
score: 60
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Test #9:
score: 60
Accepted
time: 1ms
memory: 3664kb
input:
19 1 1 2 1 2 1 2 3 1 3 2 2 3 1 2 1 3 4 1 4 3 4 3 2 2 1 3 1 2 3 4 4 1 2 5 4 2 1 5 4 4 5 4 4 1 5 3 2 3 2 3 1 3 2 1 3 1 2 5 5 6 6 2 2 1 6 6 2 5 5 3 4 6 1 2 4 2 6 1 4 4 1 4 5 1 1 2 6 5 3 5 5 3 3 3 3 4 7 5 2 3 6 4 2 7 2 1 6 1 1 5 2 1 6 7 7 5 1 2 6 6 3 4 4 7 1 3 6 5 7 3 2 7 3 2 5 1 4 5 4 5 3 3 7 4 4 6 8 1...
output:
0 1 1 1 2 1 3 1 1 2 3 1 3 3 1 2 2 3 3 6 1 3 2 4 1 1 3 1 1 2 4 4 2 1 3 2 2 2 4 2 3 4 4 1 10 1 1 2 1 1 4 3 2 1 5 4 2 1 3 5 4 2 3 3 1 2 2 4 4 2 4 5 1 3 4 4 3 3 3 5 2 4 1 5 3 15 1 4 2 3 1 3 3 2 1 5 4 2 1 2 5 1 1 1 6 2 2 5 3 4 2 1 4 4 2 6 5 3 2 4 6 3 3 1 4 3 3 6 5 6 3 3 6 4 4 5 5 4 4 6 6 5 5 2 6 6 21 1 1...
result:
ok your solution is correct.
Test #10:
score: 0
Accepted
time: 3ms
memory: 3688kb
input:
19 1 1 2 2 1 1 2 3 2 1 2 3 3 3 1 2 1 4 1 2 3 4 1 2 3 4 2 3 1 4 4 1 2 3 5 1 2 3 3 3 4 4 1 2 3 5 2 4 5 1 1 4 5 5 2 5 2 1 4 3 6 1 3 6 6 4 4 5 2 4 6 5 2 3 6 5 6 5 2 1 5 1 4 2 4 3 1 6 3 3 2 3 2 1 4 5 1 7 4 4 1 6 6 7 6 3 7 3 4 5 2 7 6 2 7 6 2 1 3 2 2 5 3 1 2 1 7 3 7 4 2 1 4 5 3 6 3 1 5 5 7 5 6 5 1 4 4 8 6...
output:
0 1 1 2 2 1 3 1 3 2 3 1 2 3 3 2 2 3 1 6 1 3 2 4 1 4 3 1 1 2 4 4 2 1 3 3 2 3 4 1 3 4 4 3 10 1 3 2 2 1 4 3 5 1 1 4 3 1 5 5 5 2 1 3 3 2 5 4 1 2 3 5 1 3 1 4 4 3 4 5 3 4 5 5 2 15 1 3 2 4 1 2 3 3 1 1 4 5 1 6 5 1 1 4 6 6 2 6 3 1 2 3 4 6 2 2 5 2 2 5 6 2 3 4 4 4 3 2 5 3 3 6 6 3 4 3 5 6 4 1 6 1 5 4 6 5 21 1 5...
result:
ok your solution is correct.
Test #11:
score: 0
Accepted
time: 2ms
memory: 3696kb
input:
19 1 1 2 2 1 1 2 3 3 3 2 1 1 2 2 1 3 4 4 1 1 3 4 4 1 2 1 2 2 3 3 2 4 3 5 3 1 5 5 5 4 2 2 5 2 1 5 4 3 4 1 1 3 4 4 3 1 2 3 2 6 1 5 5 3 2 1 5 5 2 3 4 3 2 6 2 3 1 4 6 6 6 4 6 1 4 5 1 2 3 4 6 3 2 4 5 1 7 5 1 1 3 3 7 7 5 4 1 4 4 3 6 4 4 2 7 1 3 2 1 3 5 6 5 3 5 6 4 2 7 6 2 3 7 2 6 2 1 6 2 5 7 4 5 7 1 6 8 1...
output:
0 1 1 2 2 1 3 1 2 2 2 1 1 3 3 2 1 3 2 6 1 4 2 4 1 1 3 4 1 3 4 3 2 3 3 1 2 1 4 2 3 2 4 4 10 1 3 2 5 1 5 3 3 1 1 4 2 1 2 5 4 2 2 3 4 2 3 4 1 2 4 5 3 3 2 4 4 3 5 5 1 4 3 5 2 15 1 6 2 1 1 4 3 4 1 2 4 3 1 1 5 1 1 3 6 6 2 3 3 1 2 6 4 2 2 2 5 6 2 5 6 5 3 3 4 6 3 6 5 2 3 5 6 4 4 5 5 3 4 1 6 1 5 5 6 2 21 1 3...
result:
ok your solution is correct.
Test #12:
score: 0
Accepted
time: 3ms
memory: 3664kb
input:
19 1 1 2 2 2 1 1 3 1 1 2 2 1 3 3 2 3 4 2 1 2 3 2 1 3 3 4 4 4 4 2 3 1 1 5 3 5 5 5 4 1 4 4 5 2 1 1 3 1 5 2 4 3 2 3 2 3 4 1 2 6 5 5 4 3 1 1 3 4 1 6 6 6 6 2 2 1 4 4 2 2 6 5 3 3 1 5 6 2 3 3 5 4 1 2 4 5 7 6 4 4 7 7 5 6 1 1 2 1 4 2 7 5 2 5 3 1 1 2 3 4 2 7 6 7 6 5 6 1 2 7 6 4 5 6 5 3 3 7 3 5 4 2 1 3 4 3 8 2...
output:
0 1 1 2 2 1 3 1 1 2 1 1 3 3 3 2 2 3 2 6 1 3 2 1 1 2 3 1 1 1 4 4 2 3 3 2 2 2 4 3 3 4 4 1 10 1 3 2 5 1 4 3 2 1 1 4 5 1 5 5 3 2 3 3 4 2 1 4 1 2 4 5 2 3 5 4 3 3 3 5 5 4 4 5 1 15 1 2 2 1 1 1 3 6 1 4 4 1 1 6 5 3 1 3 6 6 2 4 3 3 2 5 4 3 2 2 5 6 2 6 6 5 3 5 4 6 3 1 5 1 3 4 6 2 4 2 5 4 4 5 6 3 5 2 6 1 21 1 7...
result:
ok your solution is correct.
Test #13:
score: 0
Accepted
time: 9ms
memory: 4328kb
input:
5 156 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 95 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 34 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 14 17 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 130 1 42 1 1 1 1 1 1 1 1 1 1 1 1 90 1 64 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
12090 1 44 2 63 1 19 3 147 1 89 4 92 1 146 5 3 1 48 6 111 1 12 7 63 1 110 8 6 1 47 9 91 1 13 10 113 1 72 11 151 1 40 12 40 1 63 13 123 1 144 14 58 1 147 15 77 1 74 16 153 1 34 17 21 1 27 18 6 1 140 19 5 1 58 20 36 1 100 21 140 1 149 22 156 1 82 23 22 1 132 24 55 1 52 25 50 1 29 26 47 1 96 27 89 1 12...
result:
ok your solution is correct.
Test #14:
score: 0
Accepted
time: 5ms
memory: 3880kb
input:
7 2 1 2 1 2 4 1 4 4 1 2 3 2 4 1 4 3 3 3 1 2 2 39 1 31 38 1 22 35 1 32 36 19 33 1 1 1 4 14 24 35 33 4 1 31 34 1 1 27 1 1 34 8 35 1 1 38 10 1 6 8 10 22 14 2 2 2 20 9 26 2 8 26 23 2 36 36 2 38 2 2 18 27 29 3 28 2 3 31 33 36 2 20 2 11 33 32 2 2 2 32 34 39 11 34 35 3 3 3 16 3 3 3 34 39 3 27 17 30 33 11 3...
output:
1 1 1 2 1 6 1 2 2 1 1 1 3 3 1 4 4 2 2 2 3 1 2 4 4 1 3 4 4 4 741 1 28 2 11 1 8 3 9 1 34 4 35 1 5 5 5 1 31 6 14 1 33 7 25 1 39 8 1 1 27 9 28 1 4 10 11 1 2 11 22 1 21 12 21 1 23 13 38 1 13 14 22 1 10 15 18 1 9 16 22 1 22 17 27 1 6 18 22 1 19 19 13 1 11 20 7 1 15 21 32 1 20 22 37 1 29 23 34 1 1 24 9 1 2...
result:
ok your solution is correct.
Test #15:
score: 0
Accepted
time: 9ms
memory: 4204kb
input:
7 9 3 8 8 5 7 7 2 5 2 5 9 4 9 8 3 5 7 5 1 2 6 6 9 3 9 6 4 7 6 9 1 7 7 1 4 7 2 7 6 3 8 1 2 9 8 3 8 2 2 4 6 1 6 1 1 5 2 6 4 8 4 6 4 9 3 3 9 9 1 3 7 8 4 1 4 8 5 5 3 2 5 8 8 4 7 2 1 7 3 2 2 2 8 7 6 3 5 6 8 8 1 7 5 8 1 5 2 8 5 1 7 3 1 2 4 1 3 6 6 3 7 8 4 2 3 6 1 5 5 2 4 7 4 3 7 4 6 3 6 6 5 1 5 4 8 4 2 1 ...
output:
36 1 7 2 1 1 3 3 3 1 1 4 8 1 6 5 9 1 2 6 1 1 9 7 3 1 8 8 5 1 4 9 2 2 2 3 8 2 3 4 1 2 7 5 5 2 9 6 7 2 8 7 9 2 5 8 4 2 4 9 9 3 7 4 6 3 5 5 3 3 1 6 9 3 6 7 2 3 4 8 7 3 9 9 3 4 2 5 7 4 3 6 2 4 4 7 4 4 9 8 8 4 5 9 6 5 2 6 4 5 8 7 6 5 1 8 3 5 4 9 1 6 8 7 5 6 5 8 2 6 3 9 8 7 1 8 9 7 8 9 5 8 6 9 7 28 1 7 2 ...
result:
ok your solution is correct.
Test #16:
score: 0
Accepted
time: 7ms
memory: 3800kb
input:
9 8 8 7 6 6 2 2 6 2 5 1 6 5 5 4 1 2 5 3 8 1 2 2 4 3 5 4 7 8 7 1 7 1 6 4 8 4 1 6 8 3 3 3 1 8 3 5 4 3 7 6 5 2 7 3 6 8 8 4 7 2 1 7 5 4 6 3 3 6 2 5 2 5 5 4 4 6 1 6 4 1 3 2 4 3 5 3 6 3 1 4 2 2 1 6 5 1 6 5 4 1 2 118 1 18 1 1 1 1 1 1 4 1 115 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 18 62 1 1 1 1 1 1 1...
output:
28 1 1 2 3 1 4 3 2 1 6 4 1 1 5 5 7 1 3 6 7 1 7 7 4 1 8 8 5 2 7 3 7 2 6 4 7 2 4 5 8 2 5 6 3 2 8 7 7 2 2 8 4 3 3 4 4 3 4 5 4 3 5 6 6 3 1 7 6 3 8 8 3 4 2 5 1 4 6 6 5 4 3 7 3 4 5 8 6 5 3 6 2 5 5 7 1 5 2 8 1 6 8 7 5 6 4 8 2 7 2 8 8 15 1 1 2 1 1 3 3 5 1 5 4 4 1 6 5 1 1 4 6 1 2 3 3 2 2 4 4 2 2 2 5 3 2 5 6 ...
result:
ok your solution is correct.
Test #17:
score: 0
Accepted
time: 15ms
memory: 4220kb
input:
1 200 10 98 86 3 124 117 19 6 74 143 48 196 32 33 15 5 23 56 138 65 150 46 125 157 43 162 48 141 161 93 179 175 163 1 144 183 105 65 158 195 102 112 69 194 142 177 182 135 60 77 140 117 47 171 5 157 14 115 17 163 130 55 134 74 10 108 117 181 75 154 14 138 106 60 127 25 162 196 172 156 66 41 20 127 1...
output:
19900 1 88 2 147 1 32 3 15 1 44 4 47 1 104 5 24 1 198 6 164 1 135 7 109 1 46 8 115 1 146 9 47 1 41 10 122 1 138 11 196 1 5 12 108 1 39 13 160 1 42 14 32 1 161 15 83 1 17 16 143 1 147 17 44 1 123 18 110 1 157 19 113 1 38 20 100 1 64 21 185 1 78 22 183 1 14 23 148 1 61 24 72 1 91 25 83 1 137 26 98 1 6...
result:
ok your solution is correct.
Test #18:
score: 0
Accepted
time: 9ms
memory: 4188kb
input:
1 200 42 73 47 35 98 195 170 82 124 40 112 112 80 136 155 167 74 76 68 175 89 120 162 78 36 65 58 93 75 42 173 84 148 52 29 59 10 32 34 87 101 176 48 36 139 197 170 149 77 157 122 68 96 95 190 130 97 125 36 4 107 61 174 121 48 166 103 182 96 96 128 200 44 188 32 1 196 61 141 123 153 18 181 199 101 5...
output:
19900 1 34 2 41 1 67 3 102 1 121 4 17 1 114 5 60 1 183 6 95 1 12 7 43 1 83 8 115 1 140 9 169 1 70 10 179 1 158 11 9 1 144 12 197 1 174 13 56 1 181 14 149 1 163 15 77 1 40 16 56 1 35 17 128 1 41 18 60 1 100 19 17 1 142 20 17 1 4 21 117 1 61 22 180 1 46 23 77 1 192 24 107 1 21 25 22 1 6 26 93 1 196 27...
result:
ok your solution is correct.
Test #19:
score: 0
Accepted
time: 10ms
memory: 4400kb
input:
1 200 50 94 96 46 14 72 8 114 112 20 65 181 26 198 1 48 129 163 61 44 64 53 39 18 119 183 32 138 194 35 14 24 117 21 136 59 136 63 55 177 106 7 192 127 139 41 171 171 143 62 74 134 110 125 74 197 23 173 159 165 178 70 99 68 42 5 68 172 179 34 38 47 196 194 115 83 20 128 156 79 4 90 151 133 107 164 8...
output:
19900 1 56 2 117 1 42 3 16 1 99 4 39 1 157 5 33 1 84 6 167 1 137 7 89 1 8 8 48 1 173 9 138 1 51 10 186 1 109 11 180 1 61 12 41 1 25 13 46 1 40 14 153 1 52 15 21 1 178 16 40 1 77 17 173 1 79 18 143 1 67 19 101 1 2 20 72 1 187 21 97 1 147 22 126 1 104 23 85 1 100 24 42 1 73 25 150 1 103 26 151 1 4 27 ...
result:
ok your solution is correct.
Test #20:
score: 0
Accepted
time: 14ms
memory: 4276kb
input:
1 200 1 1 1 1 1 1 1 1 169 1 1 1 1 9 1 1 1 1 1 1 1 1 1 1 99 1 196 90 1 1 1 1 1 83 174 1 1 1 83 1 1 73 1 59 1 153 1 1 1 1 1 1 1 1 1 1 28 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 175 1 1 1 1 1 1 1 63 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 102 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 37 1 1...
output:
19900 1 1 2 119 1 40 3 144 1 43 4 140 1 50 5 135 1 58 6 65 1 183 7 110 1 155 8 49 1 146 9 132 1 178 10 45 1 136 11 7 1 74 12 131 1 37 13 108 1 125 14 174 1 12 15 77 1 61 16 173 1 135 17 29 1 174 18 90 1 154 19 56 1 21 20 130 1 72 21 160 1 5 22 180 1 76 23 130 1 93 24 86 1 98 25 28 1 197 26 157 1 137...
result:
ok your solution is correct.
Extra Test:
score: 0
Extra Test Passed