QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#75222 | #5446. 琪露诺的符卡交换 | GuanYunchang | 100 ✓ | 23ms | 5180kb | C++14 | 2.4kb | 2023-02-04 16:53:21 | 2023-02-04 16:53:23 |
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: 7ms
memory: 4616kb
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 1 2 74 1 85 3 43 1 121 4 51 1 57 5 117 1 34 6 68 1 87 7 61 1 88 8 97 1 105 9 81 1 21 10 97 1 116 11 91 1 96 12 90 1 42 13 38 1 115 14 80 1 93 15 59 1 127 16 104 1 69 17 78 1 128 18 61 1 15 19 92 1 73 20 84 1 60 21 6 1 50 22 60 1 49 23 52 1 14 24 44 1 98 25 44 1 99 26 86 1 43 27 101 1 112 28 2...
result:
ok your solution is correct.
Test #2:
score: 0
Accepted
time: 2ms
memory: 4128kb
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 2 2 10 1 6 3 4 1 8 4 13 1 7 5 6 1 3 6 8 1 10 7 5 1 9 8 4 1 4 9 9 1 11 10 14 1 12 11 1 1 5 12 7 1 1 13 2 1 14 14 8 2 2 3 3 2 13 4 4 2 8 5 12 2 7 6 2 2 14 7 8 2 6 8 14 2 9 9 6 2 4 10 10 2 12 11 5 2 5 12 14 2 1 13 7 2 3 14 5 3 1 4 3 3 10 5 9 3 2 6 10 3 9 7 11 3 5 8 2 3 6 9 5 3 12 10 11 3 13 11 13 ...
result:
ok your solution is correct.
Test #3:
score: 0
Accepted
time: 6ms
memory: 4060kb
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 14 2 12 1 11 3 76 1 75 4 47 1 9 5 47 1 28 6 72 1 42 7 36 1 5 8 18 1 60 9 49 1 61 10 73 1 62 11 62 1 36 12 58 1 16 13 29 1 26 14 69 1 27 15 43 1 54 16 50 1 3 17 27 1 52 18 68 1 48 19 23 1 18 20 18 1 80 21 58 1 76 22 34 1 50 23 62 1 19 24 8 1 7 25 30 1 78 26 11 1 13 27 35 1 59 28 74 1 39 29 71 ...
result:
ok your solution is correct.
Test #4:
score: 0
Accepted
time: 12ms
memory: 4668kb
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 3 2 3 1 2 3 1 2 1 3 2 3 1 1 2 2 1 3 3 1 2 3 3 3 0 55 1 3 2 6 1 7 3 9 1 6 4 5 1 1 5 11 1 9 6 9 1 2 7 8 1 11 8 10 1 5 9 10 1 10 10 9 1 8 11 3 2 7 3 7 2 10 4 7 2 5 5 4 2 4 6 6 2 2 7 11 2 9 8 11 2 11 9 9 2 1 10 7 2 3 11 7 3 1 4 8 3 6 5 3 3 3 6 7 3 11 7 2 3 10 8 7 3 2 9 5 3 4 10 10 3 8 11 11 4 6 5 7 ...
result:
ok your solution is correct.
Subtask #2:
score: 20
Accepted
Dependency #1:
100%
Accepted
Test #5:
score: 20
Accepted
time: 10ms
memory: 4700kb
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 9 1 17 3 9 1 9 4 17 1 5 5 17 1 15 6 14 1 13 7 10 1 4 8 15 1 14 9 7 1 11 10 6 1 10 11 10 1 16 12 1 1 8 13 8 1 2 14 6 1 3 15 4 1 12 16 1 1 1 17 11 2 5 3 10 2 2 4 3 2 12 5 16 2 4 6 4 2 3 7 13 2 11 8 14 2 17 9 11 2 16 10 14 2 8 11 9 2 10 12 12 2 14 13 16 2 1 14 8 2 13 15 7 2 15 16 10 2 6 17 1 ...
result:
ok your solution is correct.
Test #6:
score: 0
Accepted
time: 4ms
memory: 4528kb
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 8 2 6 1 7 3 7 1 14 4 2 1 22 5 5 1 17 6 8 1 19 7 22 1 13 8 12 1 21 9 11 1 25 10 28 1 28 11 17 1 9 12 28 1 27 13 7 1 4 14 19 1 16 15 27 1 15 16 12 1 24 17 15 1 11 18 23 1 18 19 4 1 26 20 28 1 23 21 12 1 5 22 24 1 20 23 10 1 10 24 22 1 1 25 9 1 12 26 11 1 2 27 9 1 6 28 21 2 17 3 1 2 20 4 3 2 25...
result:
ok your solution is correct.
Test #7:
score: 0
Accepted
time: 8ms
memory: 4288kb
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 4 1 21 3 3 1 3 4 1 1 22 5 12 1 1 6 7 1 19 7 21 1 14 8 8 1 15 9 15 1 8 10 15 1 17 11 2 1 10 12 12 1 16 13 12 1 4 14 12 1 12 15 19 1 2 16 7 1 7 17 18 1 9 18 15 1 18 19 2 1 13 20 14 1 20 21 4 1 6 22 6 2 21 3 12 2 13 4 21 2 18 5 5 2 8 6 6 2 6 7 3 2 12 8 22 2 15 9 7 2 9 10 19 2 3 11 7 2 22 12 6...
result:
ok your solution is correct.
Test #8:
score: 0
Accepted
time: 5ms
memory: 4068kb
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 11 1 23 3 6 1 13 4 29 1 28 5 25 1 7 6 10 1 16 7 21 1 2 8 25 1 17 9 28 1 1 10 7 1 4 11 15 1 24 12 15 1 14 13 6 1 8 14 25 1 21 15 11 1 10 16 1 1 5 17 6 1 12 18 20 1 3 19 20 1 26 20 1 1 20 21 3 1 25 22 29 1 22 23 10 1 19 24 23 1 27 25 17 1 15 26 8 1 29 27 19 1 11 28 22 1 18 29 7 2 22 3 26 2 2...
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: 0ms
memory: 3696kb
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 2 2 2 1 1 3 2 2 1 3 1 6 1 1 2 4 1 2 3 4 1 3 4 4 2 2 3 3 2 3 4 1 3 2 4 3 10 1 3 2 2 1 1 3 4 1 2 4 4 1 4 5 2 2 5 3 5 2 4 4 1 2 3 5 4 3 2 4 3 3 3 5 3 4 2 5 5 15 1 5 2 5 1 4 3 5 1 1 4 6 1 3 5 4 1 6 6 3 2 2 3 4 2 4 4 1 2 6 5 1 2 1 6 2 3 1 4 2 3 3 5 3 3 6 6 4 4 3 5 2 4 4 6 6 5 6 6 1 21 1 7...
result:
ok your solution is correct.
Test #10:
score: 0
Accepted
time: 2ms
memory: 3744kb
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 1 2 2 3 3 6 1 4 2 4 1 1 3 3 1 2 4 3 2 3 3 2 2 1 4 2 3 4 4 1 10 1 2 2 5 1 4 3 4 1 3 4 2 1 5 5 2 2 4 3 5 2 3 4 4 2 2 5 5 3 3 4 1 3 2 5 4 4 3 5 1 15 1 3 2 2 1 6 3 5 1 4 4 6 1 5 5 3 1 1 6 3 2 1 3 1 2 6 4 5 2 4 5 2 2 3 6 4 3 3 4 1 3 6 5 6 3 2 6 1 4 3 5 1 4 2 6 6 5 4 6 5 21 1 1...
result:
ok your solution is correct.
Test #11:
score: 0
Accepted
time: 0ms
memory: 3752kb
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 1 2 2 3 1 1 2 2 1 2 3 3 2 1 3 2 6 1 4 2 1 1 1 3 2 1 3 4 4 2 4 3 3 2 2 4 3 3 4 4 1 10 1 5 2 4 1 4 3 1 1 2 4 5 1 3 5 5 2 3 3 4 2 2 4 1 2 5 5 3 3 2 4 2 3 3 5 1 4 3 5 4 15 1 1 2 4 1 5 3 1 1 3 4 6 1 4 5 6 1 6 6 1 2 6 3 3 2 3 4 1 2 2 5 5 2 1 6 5 3 4 4 5 3 2 5 2 3 6 6 4 4 4 5 1 4 2 6 6 5 4 6 3 21 1 2...
result:
ok your solution is correct.
Test #12:
score: 0
Accepted
time: 1ms
memory: 3776kb
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 1 2 2 3 1 2 2 1 1 3 3 1 2 2 3 2 6 1 1 2 1 1 4 3 4 1 3 4 2 2 2 3 2 2 3 4 3 3 1 4 1 10 1 2 2 4 1 4 3 4 1 3 4 5 1 1 5 1 2 3 3 3 2 5 4 4 2 1 5 4 3 1 4 1 3 5 5 2 4 2 5 3 15 1 2 2 2 1 3 3 4 1 4 4 3 1 6 5 5 1 5 6 4 2 1 3 2 2 3 4 6 2 5 5 1 2 6 6 2 3 5 4 4 3 6 5 4 3 3 6 3 4 2 5 3 4 5 6 6 5 2 6 1 21 1 1...
result:
ok your solution is correct.
Test #13:
score: 0
Accepted
time: 13ms
memory: 4828kb
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 132 2 46 1 125 3 77 1 148 4 139 1 127 5 39 1 11 6 125 1 63 7 31 1 113 8 21 1 3 9 38 1 129 10 19 1 135 11 46 1 25 12 25 1 18 13 134 1 39 14 67 1 45 15 49 1 27 16 46 1 14 17 112 1 146 18 32 1 1 19 10 1 147 20 46 1 71 21 78 1 67 22 13 1 65 23 133 1 24 24 80 1 120 25 92 1 104 26 131 1 102 27 46 ...
result:
ok your solution is correct.
Test #14:
score: 0
Accepted
time: 10ms
memory: 4204kb
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 1 2 4 1 3 3 4 1 2 4 3 2 1 3 2 2 2 4 1 3 1 4 2 741 1 32 2 39 1 19 3 27 1 4 4 23 1 37 5 30 1 1 6 10 1 31 7 38 1 21 8 18 1 28 9 20 1 36 10 27 1 27 11 3 1 16 12 34 1 23 13 30 1 14 14 18 1 2 15 27 1 25 16 36 1 34 17 24 1 29 18 34 1 6 19 34 1 26 20 17 1 9 21 11 1 11 22 30 1 17 23 4 1 30 24 1...
result:
ok your solution is correct.
Test #15:
score: 0
Accepted
time: 9ms
memory: 4652kb
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 8 2 6 1 9 3 9 1 1 4 9 1 4 5 5 1 3 6 9 1 6 7 4 1 2 8 4 1 5 9 9 2 3 3 6 2 7 4 7 2 8 5 2 2 2 6 3 2 9 7 8 2 1 8 1 2 4 9 3 3 4 4 6 3 5 5 8 3 1 6 2 3 2 7 2 3 7 8 6 3 3 9 7 4 4 5 9 4 2 6 4 4 3 7 1 4 5 8 5 4 8 9 1 5 7 6 5 5 4 7 3 5 6 8 2 5 1 9 4 6 6 7 5 6 8 8 8 6 7 9 5 7 7 8 9 7 6 9 2 8 3 9 8 28 1 2 2 ...
result:
ok your solution is correct.
Test #16:
score: 0
Accepted
time: 4ms
memory: 4332kb
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 5 2 7 1 6 3 5 1 1 4 1 1 3 5 4 1 7 6 5 1 2 7 5 1 8 8 1 2 1 3 3 2 6 4 5 2 5 5 8 2 8 6 7 2 4 7 3 2 2 8 5 3 6 4 4 3 2 5 1 3 1 6 2 3 8 7 1 3 7 8 8 4 3 5 6 4 2 6 6 4 8 7 6 4 7 8 6 5 5 6 3 5 2 7 4 5 3 8 2 6 4 7 8 6 1 8 3 7 2 8 4 15 1 4 2 2 1 1 3 5 1 2 4 3 1 6 5 1 1 5 6 5 2 5 3 6 2 3 4 5 2 4 5 4 2 6 6 ...
result:
ok your solution is correct.
Test #17:
score: 0
Accepted
time: 22ms
memory: 5104kb
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 152 2 91 1 196 3 133 1 173 4 37 1 64 5 11 1 118 6 119 1 59 7 69 1 44 8 169 1 21 9 94 1 63 10 96 1 113 11 77 1 86 12 133 1 181 13 104 1 137 14 40 1 117 15 79 1 157 16 49 1 4 17 45 1 96 18 108 1 28 19 94 1 179 20 88 1 16 21 50 1 127 22 186 1 198 23 197 1 83 24 30 1 109 25 39 1 88 26 98 1 121 2...
result:
ok your solution is correct.
Test #18:
score: 0
Accepted
time: 21ms
memory: 5120kb
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 72 1 73 3 39 1 3 4 69 1 100 5 53 1 41 6 71 1 126 7 162 1 108 8 192 1 9 9 56 1 107 10 1 1 135 11 14 1 128 12 20 1 5 13 159 1 50 14 110 1 140 15 140 1 1 16 111 1 144 17 93 1 26 18 142 1 162 19 26 1 46 20 181 1 127 21 83 1 15 22 45 1 197 23 137 1 130 24 184 1 141 25 192 1 72 26 25 1 20 27 ...
result:
ok your solution is correct.
Test #19:
score: 0
Accepted
time: 19ms
memory: 5088kb
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 115 2 161 1 48 3 188 1 28 4 109 1 128 5 75 1 166 6 32 1 37 7 99 1 192 8 142 1 129 9 15 1 4 10 105 1 125 11 195 1 118 12 101 1 106 13 67 1 198 14 184 1 133 15 45 1 176 16 104 1 130 17 11 1 124 18 27 1 68 19 51 1 141 20 92 1 131 21 160 1 119 22 32 1 88 23 29 1 132 24 193 1 14 25 174 1 6 26 95 ...
result:
ok your solution is correct.
Test #20:
score: 0
Accepted
time: 23ms
memory: 5180kb
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 159 2 41 1 94 3 100 1 67 4 91 1 61 5 197 1 173 6 91 1 126 7 200 1 111 8 62 1 120 9 107 1 174 10 161 1 119 11 72 1 26 12 161 1 90 13 88 1 138 14 108 1 110 15 127 1 196 16 61 1 98 17 5 1 115 18 104 1 167 19 134 1 72 20 99 1 136 21 182 1 156 22 67 1 13 23 146 1 104 24 167 1 62 25 163 1 59 26 73...
result:
ok your solution is correct.
Extra Test:
score: 0
Extra Test Passed