QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#541062 | #4905. 交朋友 | egypt_ioi2024_10# | 21.904575 | 0ms | 0kb | / | 2893.0kb | 2024-08-31 18:34:23 | 2024-08-31 18:34:23 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Pretests
Final Tests
Test #1:
score: 4
Accepted
input:
6 9 1 3 1 5 2 3 2 4 2 6 3 5 4 5 4 6 5 6
output:
4 3 1 3 5 3 2 4 6 3 4 5 6 2 2 3
result:
ok Correct
Test #2:
score: 5.832
Acceptable Answer
input:
10 22 1 5 1 6 1 8 1 9 2 4 2 7 2 8 3 4 3 5 3 6 3 10 4 7 4 8 4 9 4 10 5 6 5 7 6 8 7 8 7 10 8 9 9 10
output:
10 4 2 4 7 8 3 1 5 6 3 1 6 8 3 1 8 9 3 3 4 10 3 3 5 6 3 4 7 10 3 4 8 9 3 4 9 10 2 5 7
result:
points 0.7290 Correct
Test #3:
score: 6
Accepted
input:
50 321 1 4 1 7 1 14 1 15 1 20 1 27 1 40 1 42 1 43 2 4 2 7 2 8 2 11 2 14 2 24 2 27 2 30 2 32 2 40 2 42 2 43 2 46 2 47 3 4 3 5 3 11 3 14 3 15 3 24 3 27 3 30 3 32 3 37 3 42 4 10 4 13 4 16 4 17 4 22 4 25 4 35 4 38 4 41 4 49 5 10 5 12 5 22 5 23 5 25 5 33 5 35 5 36 5 38 5 39 5 41 5 49 5 50 6 14 6 19 6 20 ...
output:
321 2 1 4 2 1 7 2 1 14 2 1 15 2 1 20 2 1 27 2 1 40 2 1 42 2 1 43 2 2 4 2 2 7 2 2 8 2 2 11 2 2 14 2 2 24 2 2 27 2 2 30 2 2 32 2 2 40 2 2 42 2 2 43 2 2 46 2 2 47 2 3 4 2 3 5 2 3 11 2 3 14 2 3 15 2 3 24 2 3 27 2 3 30 2 3 32 2 3 37 2 3 4...
result:
ok Correct
Test #4:
score: 1.8962
Acceptable Answer
input:
100 1593 1 3 1 11 1 15 1 17 1 19 1 20 1 22 1 25 1 32 1 35 1 36 1 38 1 39 1 46 1 51 1 52 1 54 1 57 1 60 1 62 1 67 1 77 1 82 1 86 1 89 1 94 1 95 2 10 2 11 2 12 2 17 2 18 2 25 2 30 2 43 2 44 2 45 2 50 2 53 2 56 2 59 2 62 2 63 2 64 2 66 2 68 2 72 2 73 2 74 2 77 2 79 2 81 2 84 2 87 2 88 2 90 2 91 2 94 2 ...
output:
484 5 1 17 67 86 94 5 1 19 22 52 60 5 1 22 25 39 60 5 1 22 39 51 62 5 1 36 39 54 62 5 2 10 44 73 87 5 2 10 53 56 73 5 2 11 18 66 91 5 2 11 63 81 98 5 2 17 18 79 87 5 2 18 25 53 88 5 2 18 44 59 77 5 2 25 45 50 63 5 2 53 59 66 84 5 2 56 62 79 91 5 2 63 73 74 90 5 3 6 1...
result:
points 0.21068876540 Correct
Test #5:
score: 0.78508
Acceptable Answer
input:
100 2477 1 5 1 6 1 8 1 9 1 12 1 15 1 16 1 19 1 20 1 21 1 25 1 28 1 29 1 30 1 31 1 32 1 33 1 38 1 41 1 43 1 44 1 46 1 47 1 48 1 52 1 54 1 57 1 58 1 61 1 63 1 70 1 71 1 72 1 76 1 78 1 79 1 80 1 81 1 86 1 87 1 90 1 92 1 94 1 95 1 96 1 98 1 99 1 100 2 3 2 6 2 7 2 8 2 12 2 13 2 16 2 18 2 19 2 21 2 28 2 3...
output:
469 5 1 5 6 12 33 5 1 5 6 16 30 5 1 5 6 44 98 5 1 5 6 48 87 5 1 5 6 52 92 5 1 5 8 12 28 5 1 5 8 19 43 5 1 5 9 12 61 5 1 5 9 32 72 5 1 5 16 54 86 5 1 5 30 63 94 5 1 6 12 20 58 5 1 6 16 25 80 5 1 6 20 29 90 5 1 6 25 46 78 5 1 8 16 41 90 5 1 8 16 71 96 5 1 8 19 31 57 ...
result:
points 0.08723112560 Correct
Test #6:
score: 1.69627
Acceptable Answer
input:
500 24984 1 3 1 8 1 14 1 28 1 32 1 36 1 44 1 49 1 53 1 58 1 59 1 71 1 73 1 79 1 84 1 89 1 94 1 96 1 97 1 113 1 118 1 120 1 123 1 124 1 129 1 134 1 135 1 150 1 152 1 154 1 159 1 167 1 168 1 171 1 175 1 176 1 179 1 181 1 184 1 189 1 193 1 196 1 198 1 204 1 205 1 207 1 208 1 214 1 216 1 228 1 232 1 238...
output:
7338 4 1 3 8 176 4 1 3 28 44 4 1 3 53 159 4 1 3 59 97 4 1 3 205 393 4 1 3 228 424 4 1 3 232 375 4 1 3 243 253 4 1 3 326 461 4 1 3 457 459 4 1 8 36 152 4 1 8 49 84 4 1 8 124 167 4 1 8 193 196 4 1 8 207 208 4 1 8 238 459 4 1 8 243 426 4 1 14 44 193 4 1 14 49 292 ...
result:
points 0.15420593460 Correct
Test #7:
score: 0.0523207
Acceptable Answer
input:
500 62352 1 5 1 6 1 8 1 9 1 12 1 15 1 16 1 19 1 20 1 21 1 25 1 28 1 29 1 30 1 31 1 32 1 33 1 38 1 41 1 43 1 44 1 46 1 47 1 48 1 52 1 54 1 57 1 58 1 61 1 63 1 70 1 71 1 72 1 76 1 78 1 79 1 80 1 81 1 86 1 87 1 90 1 92 1 94 1 95 1 96 1 98 1 99 1 100 1 101 1 104 1 105 1 106 1 110 1 111 1 114 1 116 1 117...
output:
15585 4 1 5 8 12 4 1 5 15 44 4 1 5 20 25 4 1 5 29 30 4 1 5 31 41 4 1 5 46 47 4 1 5 48 54 4 1 5 58 72 4 1 5 63 76 4 1 5 71 78 4 1 5 79 86 4 1 5 80 92 4 1 5 94 95 4 1 5 98 100 4 1 5 101 106 4 1 5 110 114 4 1 5 116 138 4 1 5 119 129 4 1 5 130 134 4 1 5 142 157 4...
result:
points 0.00475642490 Correct
Test #8:
score: 1.34911
Acceptable Answer
input:
1000 99869 1 3 1 8 1 14 1 28 1 32 1 36 1 44 1 49 1 53 1 58 1 59 1 71 1 73 1 79 1 84 1 89 1 94 1 96 1 97 1 113 1 118 1 120 1 123 1 124 1 129 1 134 1 135 1 150 1 152 1 154 1 159 1 167 1 168 1 171 1 175 1 176 1 179 1 181 1 184 1 189 1 193 1 196 1 198 1 204 1 205 1 207 1 208 1 214 1 216 1 228 1 232 1 23...
output:
26357 4 1 3 73 89 4 1 3 123 124 4 1 3 129 205 4 1 3 134 176 4 1 3 150 238 4 1 3 159 189 4 1 3 232 337 4 1 3 242 333 4 1 3 243 265 4 1 3 256 542 4 1 3 300 414 4 1 3 321 345 4 1 3 459 616 4 1 3 521 749 4 1 3 571 953 4 1 3 621 642 4 1 3 654 988 4 1 3 803 819 4 1 3 8...
result:
points 0.10377800010 Correct
Test #9:
score: 0.25316
Acceptable Answer
input:
1000 165993 1 3 1 11 1 15 1 17 1 19 1 20 1 22 1 25 1 32 1 35 1 36 1 38 1 39 1 46 1 51 1 52 1 54 1 57 1 60 1 62 1 67 1 77 1 82 1 86 1 89 1 94 1 95 1 108 1 109 1 110 1 115 1 116 1 123 1 128 1 141 1 142 1 143 1 148 1 151 1 154 1 157 1 160 1 161 1 162 1 164 1 166 1 170 1 171 1 172 1 175 1 177 1 179 1 18...
output:
41622 4 1 3 11 67 4 1 3 25 52 4 1 3 36 60 4 1 3 62 82 4 1 3 89 95 4 1 3 94 115 4 1 3 128 141 4 1 3 142 201 4 1 3 151 179 4 1 3 161 209 4 1 3 185 188 4 1 3 192 195 4 1 3 203 260 4 1 3 237 269 4 1 3 280 290 4 1 3 306 382 4 1 3 309 324 4 1 3 337 341 4 1 3 349 406 ...
result:
points 0.01947388290 Correct
Test #10:
score: 0.0404357
Acceptable Answer
input:
1000 249529 1 5 1 6 1 8 1 9 1 12 1 15 1 16 1 19 1 20 1 21 1 25 1 28 1 29 1 30 1 31 1 32 1 33 1 38 1 41 1 43 1 44 1 46 1 47 1 48 1 52 1 54 1 57 1 58 1 61 1 63 1 70 1 71 1 72 1 76 1 78 1 79 1 80 1 81 1 86 1 87 1 90 1 92 1 94 1 95 1 96 1 98 1 99 1 100 1 101 1 104 1 105 1 106 1 110 1 111 1 114 1 116 1 1...
output:
62300 4 1 5 8 16 4 1 5 9 44 4 1 5 15 25 4 1 5 21 30 4 1 5 28 46 4 1 5 47 61 4 1 5 63 80 4 1 5 79 86 4 1 5 87 90 4 1 5 92 111 4 1 5 99 117 4 1 5 104 106 4 1 5 116 126 4 1 5 119 129 4 1 5 132 134 4 1 5 140 163 4 1 5 145 156 4 1 5 165 173 4 1 5 168 169 4 1 5 176 1...
result:
points 0.0025272310 Correct