QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#410384 | #8650. Island Hopping | Rafi22 | 100 ✓ | 6ms | 4484kb | C++14 | 647b | 2024-05-13 22:48:55 | 2024-05-13 22:48:55 |
Judging History
answer
#include "island.h"
#include <bits/stdc++.h>
using namespace std;
void solve(int N, int L){
int n=N;
vector<vector<int>>is(n+1,vector<int>(n+1,0));
for(int i=1;i<=n;i++)
{
vector<int>V;
for(int j=1;j<n;j++)
{
int k=query(i,j);
if(k>i) break;
bool ok=1;
for(auto x:V) if(is[x][k]) ok=0;
if(!ok) break;
answer(i,k);
V.push_back(k);
is[i][k]=1;
is[k][i]=1;
}
}
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 2
Accepted
Test #1:
score: 2
Accepted
time: 1ms
memory: 3896kb
input:
3 9 3 3 1 0 2 0
output:
1 1 2 1 3 1 -1 3 3 2 -2 3 0 0
result:
ok
Test #2:
score: 0
Accepted
time: 1ms
memory: 4084kb
input:
3 9 3 3 1 0 2 0
output:
1 1 2 1 3 1 -1 3 3 2 -2 3 0 0
result:
ok
Test #3:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
3 9 2 1 0 3 2 0 1
output:
1 1 2 1 -1 2 2 2 3 1 -2 3 3 2 0 0
result:
ok
Subtask #2:
score: 4
Accepted
Test #4:
score: 4
Accepted
time: 3ms
memory: 4184kb
input:
299 89401 79 242 192 69 99 29 272 54 67 72 163 196 216 60 225 101 43 23 63 89 38 97 18 0 101 167 160 212 78 143 6 0 226 122 45 35 55 159 32 0 241 199 116 21 0 250 157 119 163 96 17 0 58 121 31 0 109 100 64 50 114 48 0 83 76 178 105 8 0 83 33 0 58 230 118 43 0 55 0 17 21 0 155 14 0 109 162 187 19 0 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 -18 23 23 2 24 1 25 1 26 1 27 1 28 1 29 1 -6 29 29 2 30 1 31 1 32 1 33 1 34 1 35 1 -32 35 35 2 36 1 37 1 38 1 -21 38 38 2 39 1 40 1 41 1 42 1 43 1 -17 43 43 2 44 1 45 1 -31 45 45 2 46 1 47 1 48 ...
result:
ok
Test #5:
score: 0
Accepted
time: 4ms
memory: 4192kb
input:
300 90000 15 17 10 153 43 12 32 178 14 3 0 174 79 6 0 261 44 9 0 295 1 0 199 229 2 0 53 256 66 159 190 144 185 60 254 39 55 176 59 95 186 7 0 277 111 65 193 6 0 162 202 249 26 0 127 223 86 138 5 0 137 13 0 100 71 74 141 207 132 7 0 219 60 75 17 0 70 183 27 0 220 91 67 203 29 0 226 24 0 51 0 136 170 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 -3 10 10 2 11 1 12 1 -6 12 12 2 13 1 14 1 -9 14 14 2 15 1 -1 15 15 2 16 1 17 1 -2 17 17 2 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 -7 32 32 2 33 1 34 1 35 1 36 1 -6 36 36 2 37 1 38 1 39 1 -26 39 39 2 40 1 41 1 42 1 43 1 -5 43...
result:
ok
Test #6:
score: 0
Accepted
time: 2ms
memory: 4244kb
input:
300 90000 171 20 47 17 208 27 25 119 40 167 62 209 163 65 157 99 4 0 272 198 29 2 0 261 36 57 73 119 7 0 189 148 6 0 155 32 19 0 214 112 85 28 0 44 151 182 116 21 0 111 136 88 80 9 0 278 47 139 97 32 0 178 204 51 3 0 41 0 83 88 127 281 46 0 97 118 216 249 281 242 22 0 250 180 91 224 7 0 246 11 0 173...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 -4 17 17 2 18 1 19 1 20 1 -2 20 20 2 21 1 22 1 23 1 24 1 25 1 -7 25 25 2 26 1 27 1 -6 27 27 2 28 1 29 1 -19 29 29 2 30 1 31 1 32 1 -28 32 32 2 33 1 34 1 35 1 36 1 -21 36 36 2 37 1 38 1 39 1 40 1 -9 40 40 2 41 1 42 1 43 1 44 ...
result:
ok
Test #7:
score: 0
Accepted
time: 6ms
memory: 4188kb
input:
300 90000 176 43 168 100 290 171 121 196 199 189 12 11 0 284 238 67 17 24 15 0 242 90 125 56 138 165 111 16 0 133 143 225 88 96 218 163 104 93 182 78 51 187 66 158 54 118 173 73 2 0 64 206 2 0 269 207 87 138 105 146 35 0 129 224 62 39 0 119 275 20 0 201 191 209 113 250 80 53 0 223 135 43 0 109 259 3...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 -11 12 12 2 13 1 14 1 15 1 16 1 17 1 -15 17 17 2 18 1 19 1 20 1 21 1 22 1 23 1 24 1 -16 24 24 2 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 -2 43 43 2 44 1 45 1 -2 45 45 2 46 1 47 1 48 1 49 1 50 1 5...
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 4444kb
input:
300 90000 96 28 19 107 160 259 34 114 78 92 219 100 61 129 44 196 39 125 3 0 127 24 73 77 130 20 0 68 37 162 118 2 0 298 135 109 206 104 290 7 0 291 115 56 25 0 220 57 17 0 45 47 124 78 94 15 0 257 39 0 192 176 40 0 232 168 167 84 86 256 140 167 107 36 0 160 38 0 72 138 139 147 13 0 166 116 71 89 66...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 -3 19 19 2 20 1 21 1 22 1 23 1 24 1 -20 24 24 2 25 1 26 1 27 1 28 1 -2 28 28 2 29 1 30 1 31 1 32 1 33 1 34 1 -7 34 34 2 35 1 36 1 37 1 -25 37 37 2 38 1 39 1 -17 39 39 2 40 1 41 1 42 1 43 1 44 1 -15 44 44 2 45 1 -39...
result:
ok
Subtask #3:
score: 7
Accepted
Test #9:
score: 7
Accepted
time: 5ms
memory: 4476kb
input:
299 598 43 91 7 115 50 157 3 0 181 106 147 44 31 150 195 113 265 171 47 103 35 199 27 70 274 82 71 101 21 0 281 112 118 140 11 0 79 33 32 0 245 158 19 0 46 124 196 83 81 127 204 160 1 0 66 10 0 100 203 35 0 171 17 0 133 170 222 5 0 55 99 72 185 244 50 0 117 249 179 135 93 228 90 146 136 11 0 256 175...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 -3 7 7 2 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 -21 27 27 2 28 1 29 1 30 1 31 1 -11 31 31 2 32 1 33 1 -32 33 33 2 34 1 35 1 -19 35 35 2 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 -1 43 43 2 44 1 -10 44 44 2 45 1 46 1...
result:
ok
Test #10:
score: 0
Accepted
time: 0ms
memory: 4440kb
input:
300 600 26 33 65 25 30 147 152 62 55 96 61 135 103 165 40 107 78 215 92 50 112 56 48 68 4 0 205 1 0 80 163 296 115 5 0 31 30 0 86 199 2 0 236 97 297 252 120 189 96 15 0 241 80 93 75 118 229 283 67 23 0 139 154 20 0 284 84 220 64 57 9 0 153 22 0 204 54 0 98 254 133 134 11 0 178 8 0 275 216 53 0 101 3...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 -4 25 25 2 26 1 -1 26 26 2 27 1 28 1 29 1 30 1 -5 30 30 2 31 1 -30 31 31 2 32 1 33 1 -2 33 33 2 34 1 35 1 36 1 37 1 38 1 39 1 40 1 -15 40 40 2 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 -...
result:
ok
Test #11:
score: 0
Accepted
time: 6ms
memory: 4164kb
input:
300 600 44 251 33 107 74 15 118 34 40 138 43 18 58 49 6 0 171 108 109 12 0 60 158 253 32 87 131 68 156 159 294 116 162 78 71 21 0 133 3 0 207 8 0 177 67 224 189 160 42 9 0 228 53 39 0 186 11 0 199 1 0 49 117 178 187 76 14 0 44 0 1 252 189 175 41 0 204 192 214 141 190 13 0 77 99 18 0 289 85 133 218 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 -6 15 15 2 16 1 17 1 18 1 -12 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 -21 32 32 2 33 1 -3 33 33 2 34 1 -8 34 34 2 35 1 36 1 37 1 38 1 39 1 40 1 -9 40 40 2 41 1 42 1 -39 42 42 2 43 1 -11 43 43 2 44...
result:
ok
Test #12:
score: 0
Accepted
time: 0ms
memory: 4472kb
input:
300 600 30 176 7 130 137 275 3 0 144 59 118 35 33 37 171 43 136 105 195 41 47 47 146 279 193 260 150 154 242 94 126 1 0 112 237 115 11 0 297 81 10 0 295 185 12 0 163 284 134 67 18 0 174 107 14 0 52 134 77 103 19 0 20 0 139 253 78 181 3 0 266 43 0 67 114 117 103 164 162 79 8 0 298 77 111 161 74 112 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 -3 7 7 2 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 -1 30 30 2 31 1 32 1 33 1 -11 33 33 2 34 1 35 1 -10 35 35 2 36 1 37 1 -12 37 37 2 38 1 39 1 40 1 41 1 -18 41 41 2 42 1 43 1 -14 43 43 2 44 1 45 1 46 1...
result:
ok
Test #13:
score: 0
Accepted
time: 3ms
memory: 4264kb
input:
300 600 75 203 242 122 165 66 35 36 179 190 64 18 80 22 103 45 21 12 0 272 72 258 17 0 85 14 0 248 119 49 119 33 67 155 229 193 83 115 26 0 242 56 7 0 106 8 0 45 220 132 94 66 173 157 53 50 16 0 36 0 8 69 60 78 24 0 130 44 0 143 176 137 43 0 87 109 104 34 0 224 80 107 70 47 0 213 139 127 178 11 0 25...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 -12 18 18 2 19 1 20 1 21 1 -17 21 21 2 22 1 -14 22 22 2 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 -26 33 33 2 34 1 35 1 -7 35 35 2 36 1 -8 36 36 2 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 -16 45 45 2 -3...
result:
ok
Test #14:
score: 0
Accepted
time: 5ms
memory: 4444kb
input:
300 600 232 70 26 187 129 145 177 117 162 190 93 20 54 67 135 83 169 116 233 12 0 183 180 63 67 95 33 3 0 98 176 36 118 237 102 65 25 0 280 101 37 28 0 207 35 0 256 46 46 185 44 87 49 41 0 209 126 38 0 39 0 62 91 127 43 0 234 85 131 60 129 13 0 71 259 177 196 193 84 52 0 257 35 0 171 38 0 145 22 0 2...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 -12 20 20 2 21 1 22 1 23 1 24 1 25 1 26 1 -3 26 26 2 27 1 28 1 29 1 30 1 31 1 32 1 33 1 -25 33 33 2 34 1 35 1 36 1 -28 36 36 2 37 1 -35 37 37 2 38 1 39 1 40 1 41 1 42 1 43 1 44 1 -41 44 44 2 45 1 46 1 -38 46 4...
result:
ok
Subtask #4:
score: 9
Accepted
Test #15:
score: 9
Accepted
time: 0ms
memory: 4184kb
input:
299 89401 29 153 166 54 65 75 166 9 8 0 250 88 19 193 154 26 73 271 231 44 11 0 68 265 264 83 111 179 41 14 0 191 116 177 1 0 122 80 263 48 86 43 1 0 87 61 143 90 67 187 25 0 151 89 34 0 62 18 0 108 92 117 169 32 0 128 228 53 150 200 50 0 56 4 0 70 93 53 0 147 194 190 99 134 36 0 121 43 0 199 125 17...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 -8 9 9 2 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 -11 19 19 2 20 1 21 1 22 1 23 1 24 1 25 1 26 1 -14 26 26 2 27 1 28 1 29 1 -1 29 29 2 30 1 31 1 32 1 33 1 34 1 35 1 -1 35 35 2 36 1 37 1 38 1 39 1 40 1 41 1 -25 41 41 2 42 1 43 1 -34 43 43 2 44 1 -18 44 44 ...
result:
ok
Test #16:
score: 0
Accepted
time: 5ms
memory: 4244kb
input:
300 90000 28 74 200 257 74 67 119 23 185 239 244 19 109 257 76 184 20 122 12 0 148 17 0 139 42 127 8 0 240 61 67 60 241 1 0 209 83 54 251 76 89 248 48 65 73 213 178 203 72 21 0 250 115 84 236 238 216 35 0 253 209 124 58 80 190 30 0 174 212 73 172 51 0 258 168 1 0 26 0 28 24 0 220 217 113 106 36 0 11...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 -12 19 19 2 20 1 -17 20 20 2 21 1 22 1 23 1 -8 23 23 2 24 1 25 1 26 1 27 1 28 1 -1 28 28 2 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 -21 42 42 2 43 1 44 1 45 1 46 1 47 1 48 1 -35 48 48 2...
result:
ok
Test #17:
score: 0
Accepted
time: 0ms
memory: 4180kb
input:
300 90000 24 129 21 151 32 68 19 133 152 30 27 200 37 63 82 72 122 279 7 0 126 186 3 0 93 28 43 1 0 202 106 246 11 0 138 22 0 170 243 10 0 107 129 5 0 207 48 251 50 245 13 0 123 228 210 59 216 92 23 0 195 177 62 65 56 33 0 189 215 35 0 105 147 105 119 69 103 47 0 208 181 174 40 0 287 134 206 45 0 15...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 -7 19 19 2 20 1 21 1 -3 21 21 2 22 1 23 1 24 1 -1 24 24 2 25 1 26 1 27 1 -11 27 27 2 28 1 -22 28 28 2 29 1 30 1 -10 30 30 2 31 1 32 1 -5 32 32 2 33 1 34 1 35 1 36 1 37 1 -13 37 37 2 38 1 39 1 40 1 41 1 42 1 43 1 -2...
result:
ok
Test #18:
score: 0
Accepted
time: 0ms
memory: 4172kb
input:
300 90000 107 125 147 143 199 56 54 205 67 155 18 112 77 98 218 17 16 0 278 11 0 248 68 96 35 75 76 244 173 141 100 124 70 61 204 33 32 0 62 123 21 0 148 132 87 104 69 85 72 70 90 160 212 60 50 99 64 47 0 56 53 106 51 0 210 7 0 202 185 6 0 50 0 47 102 230 269 46 0 104 30 0 223 33 0 277 71 49 0 174 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 -16 17 17 2 18 1 -11 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 -32 33 33 2 34 1 35 1 -21 35 35 2 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 -47 50 50 2...
result:
ok
Test #19:
score: 0
Accepted
time: 1ms
memory: 4184kb
input:
300 90000 65 54 189 232 81 168 243 108 216 123 19 220 45 41 71 21 188 46 11 0 242 29 16 0 61 247 266 136 26 25 0 233 138 132 20 0 210 129 212 84 106 72 184 107 69 158 51 94 14 0 272 86 169 75 13 0 98 18 0 237 127 231 276 145 39 0 228 67 143 2 0 197 223 144 118 235 147 165 21 0 86 95 239 134 1 0 16 0...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 -11 19 19 2 20 1 21 1 -16 21 21 2 22 1 23 1 24 1 25 1 26 1 -25 26 26 2 27 1 28 1 29 1 -20 29 29 2 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 -14 41 41 2 42 1 43 1 44 1 45 1 -13 45 45 2 46 1 -18 46 ...
result:
ok
Test #20:
score: 0
Accepted
time: 0ms
memory: 4476kb
input:
299 89401 124 18 76 23 27 112 130 66 85 163 39 28 124 152 55 250 44 2 0 31 93 57 62 167 4 0 72 77 151 115 5 0 142 12 0 43 83 146 4 0 18 0 2 139 237 214 43 184 123 189 11 0 106 213 100 134 28 0 35 0 12 17 0 204 168 79 136 183 222 121 91 100 167 163 15 0 95 131 20 0 287 70 108 206 164 21 0 104 195 211...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 -2 18 18 2 19 1 20 1 21 1 22 1 23 1 -4 23 23 2 24 1 25 1 26 1 27 1 -5 27 27 2 28 1 -12 28 28 2 29 1 30 1 31 1 -4 31 31 2 -18 31 31 3 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 -11 39 39 2 40 1 41 1 42 1 43 1 -28 43 43 2 -3...
result:
ok
Test #21:
score: 0
Accepted
time: 6ms
memory: 4152kb
input:
300 90000 107 151 196 68 165 198 133 102 136 75 73 73 58 141 72 24 88 280 118 26 161 90 31 16 0 272 207 20 0 300 110 205 35 124 23 0 128 218 201 96 29 0 219 40 168 51 106 36 0 294 50 128 91 179 180 29 0 130 160 161 137 41 0 51 38 0 50 0 41 139 61 188 127 180 114 13 0 169 249 194 53 0 153 129 155 98 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 -16 24 24 2 25 1 26 1 -20 26 26 2 27 1 28 1 29 1 30 1 31 1 -23 31 31 2 32 1 33 1 34 1 35 1 -29 35 35 2 36 1 37 1 38 1 39 1 40 1 -36 40 40 2 41 1 42 1 43 1 44 1 45 1 46 1 -29 46 46 2 47 1 48...
result:
ok
Test #22:
score: 0
Accepted
time: 6ms
memory: 4476kb
input:
300 90000 38 244 265 125 224 67 79 61 76 227 137 145 31 111 127 95 122 32 123 103 193 37 27 71 87 49 23 0 159 101 102 189 13 0 276 18 0 243 70 199 138 45 22 0 92 1 0 50 55 132 88 94 214 100 18 0 36 0 32 49 176 108 26 0 46 0 189 38 0 162 96 73 84 114 39 0 130 62 117 195 192 247 8 0 166 56 0 79 81 126...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 -23 27 27 2 28 1 29 1 30 1 31 1 -13 31 31 2 32 1 -18 32 32 2 33 1 34 1 35 1 36 1 37 1 -22 37 37 2 38 1 -1 38 38 2 39 1 40 1 41 1 42 1 43 1 44 1 45 1 -18 45 45 2 -36 45 45 3 4...
result:
ok
Subtask #5:
score: 13
Accepted
Test #23:
score: 13
Accepted
time: 0ms
memory: 4228kb
input:
299 897 140 39 67 214 234 122 174 227 206 65 41 211 117 51 152 195 28 143 127 64 144 119 201 271 109 88 109 17 0 103 210 36 213 42 197 87 186 30 0 287 98 41 2 0 87 101 11 0 38 0 231 32 0 70 183 116 78 187 190 91 144 143 14 0 274 153 116 86 214 138 256 120 191 206 88 157 156 20 0 293 10 0 199 73 3 0 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -17 28 28 2 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -30 36 36 2 37 1 38 1 39 1 -2 39 39 2 40 1 41 1 -11 41 41 2 -38 41 41 3 42 1 -32 42 42 2 43 1 44 1 45 1 46 1 47 1 48 ...
result:
ok
Test #24:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
300 900 46 64 55 94 100 43 71 216 189 281 233 172 108 116 102 67 178 22 37 206 154 18 0 184 36 64 56 149 60 32 59 34 48 28 0 225 51 30 0 140 162 23 0 174 19 0 199 179 181 237 123 150 6 0 28 0 32 286 91 1 0 298 62 31 0 153 87 97 33 0 292 85 57 146 3 0 158 25 0 276 53 0 254 120 29 0 130 27 0 219 90 47...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 -18 22 22 2 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 -28 32 32 2 33 1 34 1 -30 34 34 2 35 1 36 1 -23 36 36 2 37 1 -19 37 37 2 38 1 39 1 40 1 41 1 42 1 43 1 -6 43 43 2 -28 43 43 3 44 1 45 1 4...
result:
ok
Test #25:
score: 0
Accepted
time: 6ms
memory: 4148kb
input:
300 900 60 116 72 100 150 88 148 125 14 109 58 181 215 9 0 192 137 222 116 79 197 120 33 56 119 138 205 100 37 91 104 78 81 151 21 0 255 61 192 50 27 0 266 175 93 92 82 78 72 162 95 64 127 119 289 36 0 58 139 117 73 36 0 237 177 22 0 241 85 11 0 50 0 36 106 1 0 114 34 0 183 79 193 46 0 112 172 256 2...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 -9 14 14 2 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 -21 33 33 2 34 1 35 1 36 1 37 1 -27 37 37 2 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 -36 50 50 2 51 1 52 1 53...
result:
ok
Test #26:
score: 0
Accepted
time: 2ms
memory: 4480kb
input:
300 900 8 212 14 94 32 117 107 1 0 132 77 30 56 37 59 3 0 237 32 47 92 260 160 134 268 86 143 231 226 72 143 130 37 10 0 224 63 5 0 15 0 70 52 113 59 90 12 0 29 0 75 202 72 82 157 180 71 80 258 118 16 0 172 75 55 150 148 33 0 219 225 103 49 0 66 11 0 211 61 146 13 0 35 0 174 134 57 0 109 77 31 0 147...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -1 8 8 2 9 1 10 1 11 1 12 1 13 1 14 1 -3 14 14 2 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 -10 30 30 2 31 1 32 1 -5 32 32 2 -15 32 32 3 33 1 34 1 35 1 36 1 37 1 -12 37 37 2 -29 37 37 3 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 ...
result:
ok
Test #27:
score: 0
Accepted
time: 3ms
memory: 4188kb
input:
300 900 94 175 79 111 180 30 80 65 12 174 191 9 0 206 107 161 53 169 129 103 189 71 99 39 257 82 161 37 42 150 218 6 0 224 143 38 46 89 64 159 26 0 159 32 0 140 22 0 258 154 287 27 0 100 85 83 153 33 0 233 63 92 27 0 156 131 97 74 15 0 77 194 128 237 225 117 122 146 105 116 22 0 47 0 39 35 0 96 8 0 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 -9 12 12 2 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 -6 30 30 2 31 1 32 1 33 1 34 1 35 1 36 1 37 1 -26 37 37 2 38 1 -32 38 38 2 39 1 -22 39 39 2 40 1 41 1 42 1 -27 42 42 2 43 1 44 1 45 1 46 1 -33 46 46...
result:
ok
Test #28:
score: 0
Accepted
time: 0ms
memory: 4472kb
input:
300 900 4 179 49 1 0 36 219 107 69 51 153 138 213 1 0 293 197 280 60 61 62 48 216 93 162 196 62 117 43 237 53 121 242 86 129 79 190 156 67 4 0 171 119 85 68 59 148 54 25 0 273 112 170 90 163 18 0 214 3 0 228 66 8 0 87 107 27 0 221 42 0 77 83 154 58 1 0 57 0 4 18 0 40 0 48 15 0 115 16 0 238 17 0 23 0...
output:
1 1 2 1 3 1 4 1 -1 4 4 2 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 -1 12 12 2 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -4 36 36 2 37 1 38 1 39 1 40 1 41 1 42 1 43 1 -25 43 43 2 44 1 45 1 46 1 47 1 48 1 -18 48 48 2 49 1 -3 49 49 ...
result:
ok
Test #29:
score: 0
Accepted
time: 5ms
memory: 4128kb
input:
299 897 56 42 244 174 41 43 136 36 14 70 108 151 146 9 0 253 119 53 66 70 63 282 30 50 99 36 31 41 273 131 194 21 0 232 25 0 74 38 95 164 122 8 0 24 0 72 209 32 0 260 187 92 5 0 26 0 84 2 0 261 6 0 60 89 207 87 89 248 161 22 0 255 56 55 16 0 250 83 52 0 115 1 0 51 0 128 129 79 76 43 0 265 111 186 19...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 -9 14 14 2 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 -21 30 30 2 31 1 -25 31 31 2 32 1 33 1 34 1 35 1 36 1 -8 36 36 2 -24 36 36 3 37 1 38 1 -32 38 38 2 39 1 40 1 41 1 -5 41 41 2 -26 41 41 3 42 1 -2 42 ...
result:
ok
Test #30:
score: 0
Accepted
time: 6ms
memory: 4188kb
input:
300 900 127 238 173 29 66 18 39 41 14 42 153 49 188 9 0 255 157 109 25 6 0 85 231 59 64 123 50 214 17 0 216 252 61 89 4 0 131 36 75 56 96 89 96 30 0 221 122 141 7 0 44 95 8 0 139 10 0 285 63 39 0 78 202 114 175 182 12 0 287 23 0 295 122 146 212 147 4 0 90 32 0 247 129 97 20 0 207 78 27 0 171 225 43 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 -9 14 14 2 15 1 16 1 17 1 18 1 -6 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 -17 25 25 2 26 1 27 1 28 1 29 1 -4 29 29 2 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -30 36 36 2 37 1 38 1 39 1 -7 39 39 2 40 1 41 1 -8 41 41 2 42 1 -10 42 42 2 43 1 44 ...
result:
ok
Test #31:
score: 0
Accepted
time: 0ms
memory: 4180kb
input:
300 900 96 7 125 171 200 207 2 0 248 61 94 147 117 82 74 60 135 225 228 217 132 28 183 138 141 158 118 110 45 20 0 46 108 93 51 64 72 141 100 177 162 101 110 52 295 92 143 105 27 0 253 28 0 189 74 266 211 246 31 0 259 40 0 230 127 86 100 214 94 59 58 0 153 14 0 146 8 0 121 8 0 67 196 32 0 88 205 187...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 -2 7 7 2 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -20 28 28 2 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 -27 45 45 2 46 1 -28 46 46 2 47 1 48 1 49 1 50 1 51 1 -31 51 51...
result:
ok
Subtask #6:
score: 15
Accepted
Test #32:
score: 15
Accepted
time: 2ms
memory: 4476kb
input:
300 90000 133 82 65 266 29 24 28 86 186 109 29 105 128 117 108 247 131 234 94 141 160 26 219 6 0 268 40 22 0 226 138 7 0 234 5 0 11 0 126 80 45 102 67 111 6 0 282 148 70 119 62 5 0 25 0 29 6 0 132 96 295 46 31 0 292 44 0 79 82 128 292 164 109 142 87 299 94 249 180 227 5 0 70 288 71 39 0 93 99 146 3 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 -6 24 24 2 25 1 26 1 -22 26 26 2 27 1 28 1 -7 28 28 2 29 1 -5 29 29 2 -11 29 29 3 30 1 31 1 32 1 33 1 34 1 35 1 -6 35 35 2 36 1 37 1 38 1 39 1 40 1 -5 40 40 2 -25 40 40 3 41 1 -6 41 41 2 42...
result:
ok
Test #33:
score: 0
Accepted
time: 3ms
memory: 4136kb
input:
300 90000 293 82 168 123 196 8 12 6 0 18 71 122 44 7 0 78 238 39 49 72 81 8 0 54 161 101 282 258 187 97 62 192 199 106 220 167 64 106 133 62 123 289 213 59 14 0 83 119 49 178 102 11 0 166 206 121 232 79 15 0 41 0 275 121 229 146 68 18 0 8 116 242 108 158 38 0 181 148 11 0 97 25 0 34 0 229 244 31 0 6...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -6 8 8 2 9 1 10 1 11 1 12 1 -7 12 12 2 13 1 14 1 15 1 16 1 17 1 18 1 -8 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 -14 39 39 2 40 1 41 1 42 1 43 1 44 1 -11 44 44 2 45 1 46 1 47 1 48 1 49 1 -15 49 49...
result:
ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 4476kb
input:
300 90000 14 4 114 2 0 46 200 175 286 156 201 26 216 140 234 1 0 180 228 37 32 225 139 109 109 180 282 172 204 10 0 175 222 50 126 119 165 17 0 243 52 72 232 230 16 0 213 141 40 39 0 203 128 91 66 235 106 4 0 144 60 290 138 28 0 179 240 33 0 217 102 131 69 294 281 105 178 47 0 221 157 84 94 88 163 4...
output:
1 1 2 1 3 1 4 1 -2 4 4 2 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 -1 14 14 2 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 -10 26 26 2 27 1 28 1 29 1 30 1 31 1 32 1 -17 32 32 2 33 1 34 1 35 1 36 1 37 1 -16 37 37 2 38 1 39 1 40 1 -39 40 40 2 41 1 42 1 43 1 44 1 45 1 46 1 -4 46 46 2 ...
result:
ok
Test #35:
score: 0
Accepted
time: 1ms
memory: 4480kb
input:
300 90000 79 89 20 15 65 187 56 110 26 29 141 168 14 13 0 152 4 0 24 77 163 250 248 3 0 61 174 64 195 15 0 216 163 9 0 149 203 47 10 0 232 140 36 183 87 161 214 31 0 94 43 264 75 53 114 80 37 0 204 57 156 143 28 0 190 70 107 71 143 260 40 0 209 4 0 55 54 0 137 7 0 99 44 0 138 277 191 299 20 0 123 76...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 -13 14 14 2 15 1 -4 15 15 2 16 1 17 1 18 1 19 1 20 1 -3 20 20 2 21 1 22 1 23 1 24 1 -15 24 24 2 25 1 26 1 -9 26 26 2 27 1 28 1 29 1 -10 29 29 2 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -31 36 36 2 37 1 38 1 39 1 40 1 41 1 42 1 43 1 -37 43 43 2 4...
result:
ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 4176kb
input:
300 90000 67 88 226 149 90 10 162 44 257 6 0 168 275 231 109 295 240 125 146 240 263 293 234 58 86 174 278 288 286 146 80 173 245 111 89 225 63 146 300 102 209 81 220 6 0 218 180 8 0 60 110 57 74 77 284 93 63 90 194 101 297 231 46 0 147 22 0 166 116 44 0 115 114 288 35 0 51 0 208 114 119 133 1 0 142...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 -6 10 10 2 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 -6 42 42 2 43 1 44 1 -8 44 44 2 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 5...
result:
ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 4180kb
input:
300 90000 248 293 230 121 80 161 28 175 146 179 156 138 28 28 203 135 180 152 65 43 244 147 35 121 298 230 112 7 0 13 0 14 0 165 199 262 126 124 125 269 23 0 112 140 128 217 159 66 276 213 20 0 69 172 114 186 190 74 234 99 180 83 111 211 108 178 153 77 115 147 234 78 184 209 19 0 163 40 0 117 85 137...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -7 28 28 2 -13 28 28 3 -14 28 28 4 29 1 30 1 31 1 32 1 33 1 34 1 35 1 -23 35 35 2 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 -20 43 43 2 44 1 45 1 46 1 47 1 48 1 49 1 50 1 ...
result:
ok
Test #38:
score: 0
Accepted
time: 3ms
memory: 4476kb
input:
299 89401 75 33 66 74 66 97 66 17 66 55 66 22 43 66 36 170 8 0 42 192 293 66 66 12 0 298 66 158 86 29 66 66 26 0 83 66 66 66 2 0 136 66 66 15 0 217 66 102 66 66 123 17 0 238 13 0 98 88 217 66 230 66 66 150 282 204 66 66 10 0 260 66 66 126 66 158 66 66 66 153 66 3 0 5 0 7 0 9 0 11 0 14 0 20 0 21 0 23...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 -8 17 17 2 18 1 19 1 20 1 21 1 22 1 -12 22 22 2 23 1 24 1 25 1 26 1 27 1 28 1 29 1 -26 29 29 2 30 1 31 1 32 1 33 1 -2 33 33 2 34 1 35 1 36 1 -15 36 36 2 37 1 38 1 39 1 40 1 41 1 42 1 -17 42 42 2 43 1 -13 43 43 2 44 1 45 1 46...
result:
ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 4188kb
input:
300 90000 243 31 243 243 52 102 182 192 243 243 33 243 67 243 243 120 36 243 243 227 243 150 243 64 243 243 127 38 243 163 2 0 164 243 11 0 253 91 243 17 0 243 272 28 0 42 100 243 203 38 0 137 243 115 243 243 243 163 243 243 243 5 0 61 243 243 243 243 147 133 243 28 0 106 52 0 133 243 112 24 0 219 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 -2 31 31 2 32 1 33 1 -11 33 33 2 34 1 35 1 36 1 -17 36 36 2 37 1 38 1 -28 38 38 2 39 1 40 1 41 1 42 1 -38 42 42 2 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 ...
result:
ok
Test #40:
score: 0
Accepted
time: 5ms
memory: 4256kb
input:
300 90000 2 1 0 5 4 3 0 6 2 0 8 4 0 7 6 0 10 5 0 9 8 0 10 7 0 9 0 12 12 10 0 11 0 15 14 13 0 16 12 0 18 14 0 18 20 15 0 16 0 21 22 17 0 23 18 0 24 19 0 24 20 0 25 21 0 22 0 26 23 0 27 24 0 28 25 0 29 26 0 31 27 0 30 29 0 33 28 0 34 34 30 0 36 31 0 32 0 35 34 0 36 33 0 35 0 39 39 40 36 0 37 0 40 38 0...
output:
1 1 2 1 -1 2 2 2 3 1 4 1 -3 4 4 2 5 1 -2 5 5 2 6 1 -4 6 6 2 7 1 -6 7 7 2 8 1 -5 8 8 2 9 1 -8 9 9 2 10 1 -7 10 10 2 -9 10 10 3 11 1 12 1 -10 12 12 2 -11 12 12 3 13 1 14 1 -13 14 14 2 15 1 -12 15 15 2 16 1 -14 16 16 2 17 1 18 1 -15 18 18 2 -16 18 18 3 19 1 20 1 -17 20 20 2 21 1 -18 21 21 2 22 1 -19 22...
result:
ok
Test #41:
score: 0
Accepted
time: 0ms
memory: 4480kb
input:
300 90000 123 101 80 80 109 33 55 96 87 42 127 56 115 34 116 75 90 107 55 98 67 138 146 70 71 66 100 116 64 174 72 80 6 0 74 14 0 170 176 149 137 126 97 56 147 10 0 162 183 157 51 75 55 124 171 162 45 0 201 70 194 154 7 0 19 0 47 0 140 12 0 40 0 80 108 155 74 150 114 117 87 29 0 112 188 26 0 67 21 0...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 -6 33 33 2 34 1 -14 34 34 2 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 -10 42 42 2 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 -45 51 51 2 52 1 53...
result:
ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
300 90000 265 240 49 298 60 212 229 147 216 102 200 105 128 151 133 120 196 215 142 243 296 70 184 105 243 284 104 81 169 129 50 204 173 62 168 92 185 184 79 133 130 150 237 264 52 195 151 281 3 0 119 31 0 190 171 45 0 86 285 152 86 73 92 213 90 5 0 86 216 34 0 132 274 179 226 141 230 249 82 22 0 28...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 -3 49 49 2 50 1 -31 50 50 2 51 1 52 1 -45 52 52 2 53 1 54 1 55 1...
result:
ok
Test #43:
score: 0
Accepted
time: 4ms
memory: 4148kb
input:
299 89401 89 204 40 56 155 136 254 260 94 187 77 186 227 94 180 124 24 258 36 208 195 112 111 17 0 128 128 126 263 142 37 174 191 133 192 207 228 19 0 42 29 0 102 115 55 3 0 100 93 36 0 109 238 80 109 59 211 168 162 294 252 229 103 187 39 0 189 4 0 186 210 200 46 0 129 214 255 156 98 223 261 287 192...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 -17 24 24 2 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -19 36 36 2 37 1 -29 37 37 2 38 1 39 1 40 1 -3 40 40 2 41 1 42 1 -36 42 42 2 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 ...
result:
ok
Test #44:
score: 0
Accepted
time: 0ms
memory: 4476kb
input:
300 90000 150 256 242 159 247 140 232 12 259 139 63 8 0 169 207 269 101 177 76 73 126 55 149 209 161 90 29 222 39 215 25 0 31 128 29 0 205 147 131 249 213 227 66 146 27 0 143 245 117 145 85 176 74 292 214 55 233 115 213 166 261 177 20 0 48 0 227 266 277 127 94 295 181 166 11 0 112 85 197 37 0 214 25...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 -8 12 12 2 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 -25 29 29 2 30 1 31 1 -29 31 31 2 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 -27 39 39 2 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53...
result:
ok
Test #45:
score: 0
Accepted
time: 0ms
memory: 4480kb
input:
299 89401 202 240 133 86 100 97 265 205 213 55 235 186 231 215 125 235 42 235 235 57 156 298 131 234 233 153 82 61 83 235 235 103 136 141 37 217 35 0 235 207 91 46 123 17 0 235 98 88 235 40 0 235 230 232 235 183 235 204 223 69 10 0 235 173 20 0 235 126 275 158 28 0 235 285 235 178 235 250 96 87 54 0...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 -35 37 37 2 38 1 39 1 40 1 41 1 42 1 -17 42 42 2 43 1 44 1 45 1 46 1 -40 46 46 2 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 ...
result:
ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 4400kb
input:
300 90000 142 94 94 94 52 94 182 255 94 116 94 56 267 97 18 94 36 15 0 94 207 261 94 221 94 81 94 62 127 38 176 94 164 94 253 91 51 17 0 94 279 28 0 94 94 288 94 94 263 94 85 283 244 94 121 94 35 0 94 5 0 94 222 79 94 12 0 94 147 218 215 106 133 26 0 94 112 94 135 150 94 94 141 161 228 298 94 94 94 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 -15 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -17 36 36 2 37 1 38 1 -28 38 38 2 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 -35 51 51 2 52 1 -...
result:
ok
Test #47:
score: 0
Accepted
time: 6ms
memory: 4212kb
input:
300 90000 6 4 254 2 0 239 136 1 0 179 198 71 150 78 187 273 247 135 60 109 170 36 220 96 99 37 269 213 2 0 38 174 88 154 64 119 138 176 2 0 246 60 250 18 0 63 22 0 218 25 0 193 2 0 131 164 182 240 153 134 98 195 106 95 165 139 62 133 123 70 237 133 122 158 90 15 0 34 0 128 175 51 0 290 36 0 84 29 0 ...
output:
1 1 2 1 3 1 4 1 -2 4 4 2 5 1 6 1 -1 6 6 2 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 -2 25 25 2 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 -2 33 33 2 34 1 35 1 36 1 -18 36 36 2 37 1 -22 37 37 2 38 1 -25 38 38 2 39 1 -2 39 39 2 40 1 41 1 42 1 43 1 44 1 45...
result:
ok
Test #48:
score: 0
Accepted
time: 0ms
memory: 4172kb
input:
300 90000 2 1 0 3 2 0 108 22 201 290 29 40 2 0 247 38 56 2 0 20 25 87 154 67 80 293 47 12 0 92 82 4 0 68 140 198 13 0 199 44 113 210 7 0 226 2 0 145 36 4 0 268 128 100 152 31 0 105 181 10 0 69 2 0 147 8 0 249 119 234 98 26 0 221 49 107 19 0 215 94 45 0 161 71 2 0 265 13 0 25 91 130 211 11 0 227 168 ...
output:
1 1 2 1 -1 2 2 2 3 1 -2 3 3 2 4 1 5 1 6 1 7 1 8 1 9 1 -2 9 9 2 10 1 11 1 12 1 -2 12 12 2 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 -12 20 20 2 21 1 22 1 -4 22 22 2 23 1 24 1 25 1 -13 25 25 2 26 1 27 1 28 1 29 1 -7 29 29 2 30 1 -2 30 30 2 31 1 32 1 -4 32 32 2 33 1 34 1 35 1 36 1 -31 36 36 2 37 1 38 1 -...
result:
ok
Test #49:
score: 0
Accepted
time: 4ms
memory: 4476kb
input:
299 89401 17 239 117 169 149 91 46 74 44 192 153 131 164 61 280 290 1 0 91 122 1 0 52 129 129 140 97 296 61 119 35 58 49 112 95 147 122 149 27 0 158 162 201 44 125 160 218 223 105 9 0 38 0 75 47 7 0 199 45 0 163 113 29 0 225 70 7 0 46 19 0 169 97 114 9 0 114 241 287 28 0 195 60 59 0 211 14 0 25 0 84...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 -1 17 17 2 18 1 19 1 -1 19 19 2 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 -27 35 35 2 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 -9 44 44 2 -38 44 44 3 45 1 46 1 -7 46 46 2 47 1 -45 47...
result:
ok
Test #50:
score: 0
Accepted
time: 3ms
memory: 4192kb
input:
300 90000 55 39 153 53 56 104 10 150 51 7 0 287 72 171 47 45 160 252 163 94 50 64 165 35 86 75 138 182 62 173 99 171 241 274 118 150 22 0 198 104 167 184 2 0 99 111 68 277 93 288 14 0 179 69 13 0 148 234 185 19 0 114 9 0 120 167 4 0 70 79 1 0 253 5 0 270 263 144 152 200 220 27 0 82 176 20 0 156 114 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 -7 10 10 2 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 -22 35 35 2 36 1 37 1 38 1 39 1 -2 39 39 2 40 1 41 1 42 1 43 1 44 1 45 1 -14 45 45 2 46 1 47 1 -13 47 47 2 48 1 49 1 50 1 -...
result:
ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 4260kb
input:
300 90000 70 27 116 180 80 67 26 167 146 89 226 206 44 96 180 224 171 64 37 118 47 225 79 93 204 7 0 146 2 0 54 34 141 81 58 220 81 28 0 179 59 171 19 0 93 134 169 260 75 234 244 13 0 203 148 261 21 0 63 161 131 262 74 261 215 27 0 2 229 149 151 31 0 289 35 0 79 101 123 178 47 0 21 18 0 100 117 150 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 -7 26 26 2 27 1 -2 27 27 2 28 1 29 1 30 1 31 1 32 1 33 1 34 1 -28 34 34 2 35 1 36 1 37 1 -19 37 37 2 38 1 39 1 40 1 41 1 42 1 43 1 44 1 -13 44 44 2 45 1 46 1 47 1 -21 47 47 2 48 1...
result:
ok
Test #52:
score: 0
Accepted
time: 0ms
memory: 4180kb
input:
300 90000 297 64 57 149 154 26 121 13 73 202 146 36 8 0 23 41 17 22 15 0 288 90 105 110 188 16 0 95 13 0 111 16 0 32 233 6 0 71 74 83 206 246 85 24 0 79 144 78 94 12 0 228 204 47 192 180 14 0 203 197 45 206 43 0 157 270 38 0 162 276 60 222 117 81 151 192 267 91 3 0 164 163 113 49 0 259 257 249 176 2...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 -8 13 13 2 14 1 15 1 16 1 17 1 -15 17 17 2 18 1 19 1 20 1 21 1 22 1 -16 22 22 2 23 1 -13 23 23 2 24 1 -16 24 24 2 25 1 26 1 -6 26 26 2 27 1 28 1 29 1 30 1 31 1 32 1 -24 32 32 2 33 1 34 1 35 1 36 1 -12 36 36 2 37 1 38 1 39 1 40 1 41 1 -14 41 41 ...
result:
ok
Test #53:
score: 0
Accepted
time: 0ms
memory: 4192kb
input:
300 90000 7 59 271 179 240 150 1 0 96 51 34 19 224 160 89 108 142 189 168 66 10 0 175 83 191 172 57 78 287 28 171 26 0 86 234 43 73 77 54 9 0 194 104 143 105 57 188 45 74 133 30 0 273 77 40 0 69 124 70 263 185 135 8 0 184 160 297 33 0 103 294 106 23 0 38 0 141 137 2 0 273 72 247 81 222 125 108 18 0 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 -1 7 7 2 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 -10 19 19 2 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -26 28 28 2 29 1 30 1 31 1 32 1 33 1 34 1 -9 34 34 2 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 -30 43 43 2 44 1 45 1 -40 45 45 2 46 1 47 1 48 1 4...
result:
ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
300 90000 190 80 91 234 115 133 134 188 159 67 206 101 208 219 22 194 135 87 211 45 295 15 0 33 163 226 117 110 196 105 49 141 155 103 22 0 48 94 171 50 88 61 87 119 118 74 213 230 20 0 76 162 147 33 0 162 29 0 269 36 0 77 55 133 153 61 51 0 217 211 236 164 151 113 38 0 54 0 135 152 128 74 230 107 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 -15 22 22 2 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 -22 33 33 2 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 -20 45 45 2 46 1 47 1 48 1 -33 48 48 2 49 1 -29 49 49 2 50 1...
result:
ok
Test #55:
score: 0
Accepted
time: 3ms
memory: 4476kb
input:
300 90000 6 4 254 2 0 239 136 1 0 179 198 71 150 78 187 273 247 135 60 109 170 36 220 96 99 37 269 213 2 0 38 174 88 154 64 119 138 176 2 0 246 60 250 18 0 63 22 0 218 25 0 193 2 0 131 164 182 240 153 134 98 195 106 95 165 139 62 133 123 70 237 133 122 158 90 15 0 34 0 128 175 51 0 290 36 0 84 29 0 ...
output:
1 1 2 1 3 1 4 1 -2 4 4 2 5 1 6 1 -1 6 6 2 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 -2 25 25 2 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 -2 33 33 2 34 1 35 1 36 1 -18 36 36 2 37 1 -22 37 37 2 38 1 -25 38 38 2 39 1 -2 39 39 2 40 1 41 1 42 1 43 1 44 1 45...
result:
ok
Test #56:
score: 0
Accepted
time: 0ms
memory: 4448kb
input:
300 90000 2 1 0 3 2 0 108 22 201 290 29 40 2 0 247 38 56 2 0 20 25 87 154 67 80 293 47 12 0 92 82 4 0 68 140 198 13 0 199 44 113 210 7 0 226 2 0 145 36 4 0 268 128 100 152 31 0 105 181 10 0 69 2 0 147 8 0 249 119 234 98 26 0 221 49 107 19 0 215 94 45 0 161 71 2 0 265 13 0 25 91 130 211 11 0 227 168 ...
output:
1 1 2 1 -1 2 2 2 3 1 -2 3 3 2 4 1 5 1 6 1 7 1 8 1 9 1 -2 9 9 2 10 1 11 1 12 1 -2 12 12 2 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 -12 20 20 2 21 1 22 1 -4 22 22 2 23 1 24 1 25 1 -13 25 25 2 26 1 27 1 28 1 29 1 -7 29 29 2 30 1 -2 30 30 2 31 1 32 1 -4 32 32 2 33 1 34 1 35 1 36 1 -31 36 36 2 37 1 38 1 -...
result:
ok
Test #57:
score: 0
Accepted
time: 3ms
memory: 4188kb
input:
300 90000 103 8 163 207 57 172 71 2 0 20 48 122 53 201 120 200 73 199 141 76 148 2 0 226 211 300 171 110 188 124 59 130 189 36 54 164 151 169 68 30 0 208 120 48 70 90 128 78 110 134 168 51 83 9 0 38 0 99 179 113 46 0 101 159 11 0 142 31 0 85 66 158 5 0 146 2 0 284 27 0 170 72 138 138 176 132 218 55 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -2 8 8 2 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 -2 20 20 2 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -30 36 36 2 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 -9 48 48 2 -38 48 48 3 49 1 50 1 51 1...
result:
ok
Subtask #7:
score: 22
Accepted
Test #58:
score: 22
Accepted
time: 4ms
memory: 4240kb
input:
300 900 201 88 97 35 96 70 60 23 46 76 43 69 141 95 159 264 196 119 32 176 235 152 8 0 80 67 148 31 170 107 244 106 26 0 38 19 0 108 77 61 4 0 61 43 109 31 0 174 51 76 197 288 11 0 36 0 190 149 103 9 0 51 116 87 179 127 39 0 46 0 189 56 156 124 276 52 0 194 119 96 212 7 0 270 34 0 35 0 250 169 81 29...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 -8 23 23 2 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 -26 31 31 2 32 1 -19 32 32 2 33 1 34 1 35 1 -4 35 35 2 36 1 37 1 38 1 -31 38 38 2 39 1 40 1 41 1 42 1 43 1 -11 43 43 2 -36 43 43 3 44 1 45 1 46...
result:
ok
Test #59:
score: 0
Accepted
time: 5ms
memory: 4244kb
input:
300 900 58 210 77 99 87 125 83 165 191 25 137 113 118 283 120 66 33 91 98 44 22 21 0 161 31 261 10 0 269 218 61 80 74 73 23 0 262 228 17 0 67 66 191 200 71 23 0 72 170 220 106 152 156 20 0 141 266 293 75 101 189 116 191 135 114 158 92 126 121 1 0 104 142 214 27 0 114 287 200 219 96 16 0 34 0 271 17 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 -21 22 22 2 23 1 24 1 25 1 -10 25 25 2 26 1 27 1 28 1 29 1 30 1 31 1 -23 31 31 2 32 1 33 1 -17 33 33 2 34 1 35 1 36 1 37 1 38 1 -23 38 38 2 39 1 40 1 41 1 42 1 43 1 44 1 -20 44 44 2 45 1 46 1 47 1 48...
result:
ok
Test #60:
score: 0
Accepted
time: 5ms
memory: 4480kb
input:
300 900 7 9 65 88 38 38 1 0 28 258 2 0 92 25 108 23 83 135 113 57 25 89 109 109 182 73 12 0 133 169 10 0 17 0 64 237 291 7 0 1 151 50 245 77 286 37 113 147 34 0 60 5 0 6 0 130 80 207 43 189 41 0 162 100 53 228 49 201 47 0 205 30 0 136 148 249 45 0 225 139 2 0 223 61 16 0 179 222 297 37 0 81 56 0 205...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 -1 7 7 2 8 1 9 1 -2 9 9 2 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 -12 23 23 2 24 1 25 1 -10 25 25 2 -17 25 25 3 26 1 27 1 28 1 -7 28 28 2 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 -34 37 37 2 38 1 -5 38 38 2 -6 38 38 3 39 1 40 1 41 1 42 1 ...
result:
ok
Test #61:
score: 0
Accepted
time: 0ms
memory: 4484kb
input:
300 900 176 90 110 22 13 52 132 41 168 230 12 11 0 23 5 0 223 152 65 66 267 145 280 51 64 4 0 34 12 0 11 38 37 47 31 48 30 29 0 135 27 0 44 276 179 22 0 4 122 227 25 0 161 11 0 24 0 236 45 104 8 0 125 267 283 31 0 167 39 0 56 82 26 0 55 28 0 85 119 57 20 0 106 6 0 193 92 144 47 0 190 45 0 60 50 0 91...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 -11 12 12 2 13 1 -5 13 13 2 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 -4 22 22 2 23 1 -12 23 23 2 24 1 25 1 26 1 27 1 28 1 29 1 30 1 -29 30 30 2 31 1 -27 31 31 2 32 1 33 1 34 1 -22 34 34 2 35 1 36 1 37 1 -25 37 37 2 38 1 -11 38 38 2 -24 38 38 3 3...
result:
ok
Test #62:
score: 0
Accepted
time: 0ms
memory: 4448kb
input:
300 900 21 98 206 130 107 33 217 52 124 87 120 40 89 109 83 151 31 73 77 169 1 0 93 113 202 118 170 48 116 155 216 49 17 0 153 217 6 0 150 181 137 81 41 112 66 12 0 132 37 0 149 242 93 89 254 58 176 26 0 66 30 0 95 134 62 8 0 195 73 220 183 287 188 46 0 154 281 171 216 30 0 51 0 184 130 51 0 62 181 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 -1 21 21 2 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 -17 31 31 2 32 1 33 1 -6 33 33 2 34 1 35 1 36 1 37 1 38 1 39 1 40 1 -12 40 40 2 41 1 -37 41 41 2 42 1 43 1 44 1 45 1 46 1 47 1 48 1 -26 48 48 2...
result:
ok
Test #63:
score: 0
Accepted
time: 5ms
memory: 4240kb
input:
300 900 174 18 121 143 105 74 261 209 45 12 115 10 0 167 178 104 114 150 78 2 0 209 54 61 145 67 115 2 0 18 261 77 68 48 222 201 57 72 146 132 225 55 53 152 130 132 81 80 241 72 9 0 157 113 66 28 0 88 181 111 113 185 37 0 93 19 0 60 36 0 158 104 31 0 205 230 177 54 0 193 20 0 246 160 237 272 104 47 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 -10 12 12 2 13 1 14 1 15 1 16 1 17 1 18 1 -2 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 -2 24 24 2 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 -9 45 45 2 46 1 47 1 48 1 -28 48 48 2 49 1 50 1 51...
result:
ok
Test #64:
score: 0
Accepted
time: 0ms
memory: 4188kb
input:
299 897 33 264 33 33 33 184 34 33 33 102 33 30 33 33 94 88 44 28 196 154 168 33 33 86 33 33 33 18 0 101 33 12 0 275 109 83 1 0 3 0 4 0 5 0 8 0 9 0 11 0 13 0 14 0 22 0 23 0 25 0 26 0 27 0 29 0 42 7 0 137 40 91 49 54 131 35 0 44 95 33 0 1 33 0 1 17 0 40 0 35 33 0 1 33 0 1 33 0 1 33 0 1 37 0 272 93 33 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -18 28 28 2 29 1 30 1 -12 30 30 2 31 1 32 1 33 1 -1 33 33 2 -3 33 33 3 -4 33 33 4 -5 33 33 5 -8 33 33 6 -9 33 33 7 -11 33 33 8 -13 33 33 9 -14 33 33 10 -22 33 33 11 -23 ...
result:
ok
Test #65:
score: 0
Accepted
time: 4ms
memory: 4184kb
input:
300 900 101 101 67 34 101 44 144 101 101 57 55 101 101 101 101 101 101 101 101 101 101 101 24 23 0 236 101 152 98 101 101 101 101 147 146 4 0 217 101 101 101 101 104 101 48 101 89 6 0 54 60 101 101 41 0 77 56 101 161 101 70 44 0 115 11 0 229 49 0 155 10 0 41 0 48 101 101 45 0 231 101 289 100 226 101...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 -23 24 24 2 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 -4 34 34 2 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 -6 44 44 2 45 1 46 1 47 1 48 1 -41 48 48 2 49 1 50 1 51 1 52 1 53 ...
result:
ok
Test #66:
score: 0
Accepted
time: 4ms
memory: 4108kb
input:
300 900 2 1 0 4 4 2 0 3 0 5 4 0 6 5 0 9 10 9 6 0 8 0 11 7 0 12 9 0 12 10 0 11 0 14 16 12 0 15 14 0 16 13 0 15 0 18 18 16 0 17 0 20 22 18 0 23 22 19 0 21 0 23 20 0 22 0 26 25 24 0 28 23 0 29 30 25 0 29 26 0 28 0 31 27 0 32 29 0 32 30 0 31 0 33 32 0 34 33 0 37 36 35 0 39 34 0 39 41 36 0 37 0 42 42 38 ...
output:
1 1 2 1 -1 2 2 2 3 1 4 1 -2 4 4 2 -3 4 4 3 5 1 -4 5 5 2 6 1 -5 6 6 2 7 1 8 1 9 1 -6 9 9 2 -8 9 9 3 10 1 -7 10 10 2 11 1 -9 11 11 2 12 1 -10 12 12 2 -11 12 12 3 13 1 14 1 -12 14 14 2 15 1 -14 15 15 2 16 1 -13 16 16 2 -15 16 16 3 17 1 18 1 -16 18 18 2 -17 18 18 3 19 1 20 1 -18 20 20 2 21 1 22 1 -19 22...
result:
ok
Test #67:
score: 0
Accepted
time: 5ms
memory: 4256kb
input:
300 900 12 22 34 13 113 69 133 120 70 107 61 1 0 93 4 0 28 18 37 137 47 14 0 39 64 56 105 2 0 32 66 31 32 72 143 13 0 158 134 48 24 0 101 22 0 25 0 169 130 3 0 152 61 64 15 0 79 186 18 0 72 77 62 141 48 78 46 45 0 152 17 0 153 30 0 43 0 170 181 101 133 68 188 160 148 20 0 63 122 167 64 78 11 0 35 0 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 -1 12 12 2 13 1 -4 13 13 2 14 1 15 1 16 1 17 1 18 1 -14 18 18 2 19 1 20 1 21 1 22 1 -2 22 22 2 23 1 24 1 25 1 26 1 27 1 28 1 -13 28 28 2 29 1 30 1 31 1 -24 31 31 2 32 1 -22 32 32 2 -25 32 32 3 33 1 34 1 -3 34 34 2 35 1 36 1 37 1 -15 37 37 2 38 1 39 ...
result:
ok
Test #68:
score: 0
Accepted
time: 5ms
memory: 4476kb
input:
300 900 110 210 67 25 40 295 122 148 255 274 188 222 243 120 95 298 53 187 91 156 55 205 164 188 4 0 252 223 225 294 300 215 153 83 293 87 127 110 139 144 200 5 0 59 150 289 96 149 260 126 159 231 65 193 142 168 17 0 196 148 21 0 165 109 159 116 40 0 157 250 282 270 294 217 49 0 75 244 3 0 131 157 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 -4 25 25 2 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 -5 40 40 2 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 -17 53 53 2 54 1 55 1 ...
result:
ok
Test #69:
score: 0
Accepted
time: 0ms
memory: 4452kb
input:
299 897 121 240 49 298 60 212 229 147 216 102 200 105 128 151 133 120 196 215 142 243 296 70 184 105 243 284 104 81 169 129 50 204 173 62 168 92 185 184 79 133 130 150 237 264 52 195 151 281 3 0 119 31 0 190 171 45 0 86 285 152 86 73 92 213 90 5 0 86 216 34 0 132 274 179 226 141 230 249 82 22 0 284 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 -3 49 49 2 50 1 -31 50 50 2 51 1 52 1 -45 52 52 2 53 1 54 1 55 1...
result:
ok
Test #70:
score: 0
Accepted
time: 5ms
memory: 4484kb
input:
300 900 289 41 200 140 246 288 175 213 31 171 276 119 21 182 270 275 231 238 195 64 13 0 117 50 90 285 185 38 60 160 63 43 9 0 105 119 246 128 88 175 217 26 0 137 207 64 2 0 186 95 30 0 66 274 95 139 255 125 152 22 0 65 290 287 252 180 286 254 211 98 78 27 0 210 278 238 29 0 211 20 0 40 0 171 50 0 2...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 -13 21 21 2 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 -9 31 31 2 32 1 33 1 34 1 35 1 36 1 37 1 38 1 -26 38 38 2 39 1 40 1 41 1 -2 41 41 2 42 1 43 1 -30 43 43 2 44 1 45 1 46 1 47 1 48 1 49 1 50 1 -...
result:
ok
Test #71:
score: 0
Accepted
time: 5ms
memory: 4260kb
input:
299 897 162 264 48 98 92 184 189 255 130 102 210 30 46 126 94 88 244 28 196 154 209 210 157 238 124 158 113 18 0 210 210 12 0 210 109 83 240 137 150 91 111 54 131 44 132 100 269 40 0 210 125 13 0 210 107 3 0 210 210 210 72 148 201 38 0 210 210 210 194 207 177 165 78 204 254 121 139 203 275 274 101 2...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -18 28 28 2 29 1 30 1 -12 30 30 2 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 -40 44 44 2 45 1 46 1 -13 46 46 2 47 1 48 1 -3 48 48 2 49 1 50 1 ...
result:
ok
Test #72:
score: 0
Accepted
time: 4ms
memory: 4240kb
input:
300 900 286 22 67 34 87 44 144 212 87 57 87 38 246 179 133 35 42 273 78 186 126 2 0 87 243 87 87 87 194 85 87 227 167 87 146 4 0 87 16 0 87 87 84 12 0 87 116 123 48 17 0 87 87 6 0 87 60 87 87 41 0 87 198 87 87 120 70 87 229 87 10 0 87 87 87 45 0 87 101 87 100 87 87 175 3 0 87 187 239 53 0 87 87 153 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 -2 22 22 2 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 -4 34 34 2 35 1 -16 35 35 2 36 1 37 1 38 1 -12 38 38 2 39 1 40 1 41 1 42 1 -17 42 42 2 43 1 44 1 -6 44 44 2 45 1 46 1 47 1 48 1 ...
result:
ok
Test #73:
score: 0
Accepted
time: 0ms
memory: 4164kb
input:
300 900 103 8 163 207 57 172 71 2 0 20 48 122 53 201 120 200 73 199 141 76 148 2 0 226 211 300 171 110 188 124 59 130 189 36 54 164 151 169 68 30 0 208 120 48 70 90 128 78 110 134 168 51 83 9 0 38 0 99 179 113 46 0 101 159 11 0 142 31 0 85 66 158 5 0 146 2 0 284 27 0 170 72 138 138 176 132 218 55 0 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -2 8 8 2 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 -2 20 20 2 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -30 36 36 2 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 -9 48 48 2 -38 48 48 3 49 1 50 1 51 1...
result:
ok
Test #74:
score: 0
Accepted
time: 6ms
memory: 4188kb
input:
300 900 145 18 15 16 15 203 22 136 80 37 261 15 96 83 3 0 5 0 12 0 19 4 0 184 101 2 0 236 15 0 49 212 15 0 110 7 0 252 129 222 7 0 162 194 182 182 114 241 74 3 0 284 111 135 65 54 10 0 155 178 98 121 193 207 269 75 264 96 10 0 94 118 19 0 72 102 270 118 159 36 0 276 152 91 94 133 245 112 15 0 259 85...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 -3 15 15 2 -5 15 15 3 -12 15 15 4 16 1 -4 16 16 2 17 1 18 1 -2 18 18 2 19 1 -15 19 19 2 20 1 21 1 -15 21 21 2 22 1 -7 22 22 2 23 1 24 1 25 1 -7 25 25 2 26 1 27 1 28 1 29 1 30 1 31 1 32 1 -3 32 32 2 33 1 34 1 35 1 36 1 37 1 -10 37 37 2...
result:
ok
Test #75:
score: 0
Accepted
time: 2ms
memory: 4176kb
input:
300 900 18 83 178 65 94 32 275 79 300 73 152 178 102 220 232 112 28 1 0 29 170 69 191 55 257 117 146 63 154 17 0 145 18 0 57 43 106 6 0 224 107 40 155 43 279 101 89 34 0 233 101 67 30 0 36 0 146 112 121 150 230 62 61 87 100 53 52 0 217 160 22 0 186 252 29 0 18 82 22 0 55 162 49 0 90 48 0 200 26 0 10...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 -1 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -17 28 28 2 29 1 -18 29 29 2 30 1 31 1 32 1 -6 32 32 2 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 -34 40 40 2 41 1 42 1 43 1 -30 43 43 2 -36 43 43 3 44 1 45 1 46...
result:
ok
Test #76:
score: 0
Accepted
time: 3ms
memory: 4196kb
input:
300 900 65 70 114 238 20 47 60 174 62 62 238 267 90 43 57 74 248 125 199 5 0 260 49 88 119 100 126 46 161 290 77 69 104 85 112 119 83 123 92 287 254 198 240 300 14 0 162 169 245 26 0 53 6 0 89 120 21 0 58 91 136 84 46 0 98 149 212 71 15 0 103 49 0 137 112 7 0 124 232 9 0 10 0 223 202 77 1 0 215 281 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 -5 20 20 2 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 -14 43 43 2 44 1 45 1 46 1 -26 46 46 2 47 1 -6 47 47 2 48 1 49 1 -21 49 49 2 50 1 5...
result:
ok
Test #77:
score: 0
Accepted
time: 2ms
memory: 4176kb
input:
300 900 220 212 29 289 104 58 194 96 47 149 34 34 128 93 103 163 143 26 61 279 102 245 26 198 192 18 0 23 0 42 116 85 3 0 130 71 186 120 65 11 0 12 0 52 135 117 299 269 92 202 296 26 0 18 152 251 196 108 9 0 88 271 126 60 150 34 0 105 11 0 74 242 185 218 245 6 0 284 11 0 34 50 0 82 19 0 170 64 85 11...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 -18 26 26 2 -23 26 26 3 27 1 28 1 29 1 -3 29 29 2 30 1 31 1 32 1 33 1 34 1 -11 34 34 2 -12 34 34 3 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 -26 42 42 2 43 1 44 1 45 1 46 1 47 1 -9 ...
result:
ok
Test #78:
score: 0
Accepted
time: 4ms
memory: 4144kb
input:
300 900 80 236 100 186 31 45 226 61 152 39 122 101 33 165 40 67 78 53 69 94 36 126 282 77 124 80 66 136 145 86 5 0 158 49 13 0 172 75 297 21 0 200 121 189 10 0 228 15 0 87 117 93 75 217 6 0 56 86 176 139 32 0 249 94 174 274 18 0 164 68 155 45 0 6 69 87 67 134 8 0 256 178 159 299 100 27 0 163 16 0 59...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 -5 31 31 2 32 1 33 1 -13 33 33 2 34 1 35 1 36 1 -21 36 36 2 37 1 38 1 39 1 -10 39 39 2 40 1 -15 40 40 2 41 1 42 1 43 1 44 1 45 1 -6 45 45 2 46 1 47 1 48 1...
result:
ok
Test #79:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
300 900 35 210 11 47 75 139 71 18 77 41 3 0 91 103 41 217 77 46 92 8 0 36 159 52 77 30 68 44 53 203 103 217 33 22 0 206 256 57 29 0 58 69 1 0 133 18 0 8 95 199 153 64 10 0 13 0 162 152 142 24 0 197 121 16 0 227 4 0 164 87 250 67 55 20 0 58 3 0 25 0 11 13 0 86 18 0 51 0 74 182 32 0 69 13 0 33 0 52 0 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 -3 11 11 2 12 1 13 1 14 1 15 1 16 1 17 1 18 1 -8 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 -22 30 30 2 31 1 32 1 33 1 -29 33 33 2 34 1 35 1 -1 35 35 2 36 1 -18 36 36 2 37 1 38 1 39 1 40 1 41 1 -10 41 41 2 -13 41 41 3 42 1 43 1 4...
result:
ok
Test #80:
score: 0
Accepted
time: 6ms
memory: 4180kb
input:
300 900 196 212 229 179 49 237 12 170 168 202 173 7 0 194 15 293 13 0 117 114 165 56 151 72 146 138 112 232 45 53 117 212 113 100 229 115 128 111 67 141 82 171 248 168 157 204 112 108 25 0 170 259 236 182 5 0 61 241 58 134 26 0 184 142 104 18 0 91 114 51 0 187 168 105 49 0 287 176 100 196 70 70 35 0...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 -7 12 12 2 13 1 14 1 15 1 -13 15 15 2 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 -25 45 45 2 46 1 47 1 48 1 49 1 -5 49 49 2 50 1 51 1 52 1 53 ...
result:
ok
Test #81:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
300 900 145 18 15 16 15 203 22 136 80 37 261 15 96 83 3 0 5 0 12 0 19 4 0 184 101 2 0 236 15 0 49 212 15 0 110 7 0 252 129 222 7 0 162 194 182 182 114 241 74 3 0 284 111 135 65 54 10 0 155 178 98 121 193 207 269 75 264 96 10 0 94 118 19 0 72 102 270 118 159 36 0 276 152 91 94 133 245 112 15 0 259 85...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 -3 15 15 2 -5 15 15 3 -12 15 15 4 16 1 -4 16 16 2 17 1 18 1 -2 18 18 2 19 1 -15 19 19 2 20 1 21 1 -15 21 21 2 22 1 -7 22 22 2 23 1 24 1 25 1 -7 25 25 2 26 1 27 1 28 1 29 1 30 1 31 1 32 1 -3 32 32 2 33 1 34 1 35 1 36 1 37 1 -10 37 37 2...
result:
ok
Test #82:
score: 0
Accepted
time: 0ms
memory: 4172kb
input:
300 900 45 6 142 82 37 2 0 278 26 164 162 90 32 49 18 24 25 24 94 13 0 294 38 123 271 55 183 14 0 16 0 84 15 0 96 7 0 192 99 178 260 224 33 11 0 247 2 0 31 0 6 268 151 111 5 0 220 19 0 263 31 0 124 110 214 69 56 184 1 0 65 61 105 19 0 255 12 0 283 2 0 156 2 0 169 253 125 252 22 0 158 43 0 173 78 70 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 -2 6 6 2 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 -13 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 -14 24 24 2 -16 24 24 3 25 1 -15 25 25 2 26 1 -7 26 26 2 27 1 28 1 29 1 30 1 31 1 32 1 -11 32 32 2 33 1 -2 33 33 2 -31 33 33 3 34 1 35 1 36 1 37 1 -5 37 37 2 38 1 -19 3...
result:
ok
Test #83:
score: 0
Accepted
time: 0ms
memory: 4192kb
input:
300 900 41 24 174 247 21 34 59 176 43 27 21 169 197 173 189 33 237 23 94 120 5 0 11 0 148 167 18 0 258 2 0 283 89 178 10 0 207 89 105 58 178 75 16 0 262 6 0 157 195 2 0 131 2 0 49 114 269 238 1 0 76 171 9 0 200 2 0 24 177 69 113 60 37 0 300 69 98 190 220 75 64 142 116 30 0 217 7 0 125 48 0 102 140 8...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 -5 21 21 2 -11 21 21 3 22 1 23 1 -18 23 23 2 24 1 -2 24 24 2 25 1 26 1 27 1 -10 27 27 2 28 1 29 1 30 1 31 1 32 1 33 1 -16 33 33 2 34 1 -6 34 34 2 35 1 36 1 -2 36 36 2 37 1 -2 37 37 2 38 1 39 1 40 1 41 1 -...
result:
ok
Subtask #8:
score: 28
Accepted
Test #84:
score: 28
Accepted
time: 0ms
memory: 4444kb
input:
299 598 86 79 49 124 257 51 214 20 50 177 200 238 66 15 14 0 92 38 229 175 193 8 0 28 148 45 234 32 231 175 126 20 0 189 142 127 91 24 0 105 148 246 150 62 109 16 0 68 54 129 207 57 136 207 22 0 197 53 215 231 3 0 166 9 0 186 6 0 55 64 46 0 207 39 0 159 51 0 128 148 42 0 90 100 113 140 104 36 0 159 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 -14 15 15 2 16 1 17 1 18 1 19 1 20 1 -8 20 20 2 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -20 28 28 2 29 1 30 1 31 1 32 1 -24 32 32 2 33 1 34 1 35 1 36 1 37 1 38 1 -16 38 38 2 39 1 40 1 41 1 42 1 43 1 44 1 45 1 -22 45 45 2 46 1 47 1 48 ...
result:
ok
Test #85:
score: 0
Accepted
time: 4ms
memory: 4180kb
input:
300 600 247 105 107 57 8 52 131 5 0 91 127 286 87 128 18 132 270 234 65 13 0 138 207 245 68 44 146 113 192 172 89 80 98 121 208 62 225 86 146 102 135 93 133 91 249 76 54 22 0 55 95 262 201 250 291 205 59 6 0 86 63 43 0 215 44 0 103 83 4 0 138 153 51 0 89 94 144 32 0 81 53 0 223 106 17 0 170 189 169 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -5 8 8 2 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 -13 18 18 2 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 -22 44 44 2 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 -6 52 52 2 53 1 ...
result:
ok
Test #86:
score: 0
Accepted
time: 0ms
memory: 4476kb
input:
300 600 42 101 51 45 69 93 96 17 179 176 272 28 35 83 280 80 8 0 104 253 209 243 26 32 176 65 244 21 0 117 45 12 0 143 106 280 263 22 0 134 229 199 13 0 299 88 65 168 172 157 149 1 0 263 55 176 4 0 27 0 48 170 160 45 0 4 162 81 3 0 121 102 104 140 43 0 56 55 0 101 72 142 271 148 74 65 210 149 24 0 3...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 -8 17 17 2 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 -21 26 26 2 27 1 28 1 -12 28 28 2 29 1 30 1 31 1 32 1 -22 32 32 2 33 1 34 1 35 1 -13 35 35 2 36 1 37 1 38 1 39 1 40 1 41 1 42 1 -1 42 42 2 43 1 44 1 45 1 -4 45 45 2 -27...
result:
ok
Test #87:
score: 0
Accepted
time: 0ms
memory: 4480kb
input:
300 600 63 71 178 118 43 71 239 207 197 102 23 87 59 123 55 221 141 119 47 292 37 41 11 0 293 32 151 86 186 186 178 72 126 24 0 34 232 24 0 113 269 191 21 0 91 107 193 223 22 0 123 200 5 0 44 43 0 173 66 134 19 0 77 62 107 109 256 183 220 187 15 0 276 101 58 57 0 279 13 0 80 173 188 48 0 134 1 0 163...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 -11 23 23 2 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 -24 32 32 2 33 1 34 1 -24 34 34 2 35 1 36 1 37 1 -21 37 37 2 38 1 39 1 40 1 41 1 -22 41 41 2 42 1 43 1 -5 43 43 2 44 1 -43 44 44 2 45 1 4...
result:
ok
Test #88:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
299 598 112 273 41 22 17 107 81 86 172 101 121 121 175 153 170 25 5 0 51 111 107 81 234 4 0 133 143 263 16 0 63 104 88 153 55 217 71 112 100 259 99 174 91 46 54 56 3 0 154 58 223 278 54 38 0 140 58 82 176 249 17 0 145 169 263 39 0 45 0 79 29 0 213 40 0 124 147 42 0 47 0 209 234 169 66 184 16 0 224 7...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 -5 17 17 2 18 1 19 1 20 1 21 1 22 1 -4 22 22 2 23 1 24 1 25 1 -16 25 25 2 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 -3 41 41 2 42 1 43 1 44 1 45 1 46 1 -38 46 46 2 47 1 48 1 49 1 50 1 51...
result:
ok
Test #89:
score: 0
Accepted
time: 4ms
memory: 4128kb
input:
300 600 77 87 102 89 9 162 124 68 5 0 48 277 186 39 206 126 95 99 76 213 157 50 66 96 238 121 119 91 136 87 37 244 61 56 228 122 229 104 29 0 135 274 12 0 249 280 202 151 49 158 231 185 69 9 0 5 43 0 149 20 0 70 138 164 216 94 64 32 0 148 205 86 220 199 31 0 166 63 62 0 295 55 0 138 73 21 0 203 127 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 -5 9 9 2 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 -29 37 37 2 38 1 39 1 -12 39 39 2 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 -9 48 48 2 49 1 -43 49 49 2 50 1 -20...
result:
ok
Test #90:
score: 0
Accepted
time: 1ms
memory: 4176kb
input:
300 600 149 36 43 206 19 13 141 100 75 57 127 76 6 0 123 125 39 190 193 145 5 0 133 56 31 39 286 90 172 162 101 86 185 70 21 0 94 155 124 182 201 2 0 170 104 158 15 0 22 0 48 119 251 50 3 0 257 125 139 193 120 39 0 222 261 42 0 102 55 168 62 96 51 0 71 20 0 231 10 0 95 218 198 201 210 53 0 134 261 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 -6 13 13 2 14 1 15 1 16 1 17 1 18 1 19 1 -5 19 19 2 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 -21 31 31 2 32 1 33 1 34 1 35 1 36 1 -2 36 36 2 37 1 38 1 39 1 -15 39 39 2 -22 39 39 3 40 1 41 1 42 1 43 1 -3 43 43 2 44 1 45 1 46 1...
result:
ok
Test #91:
score: 0
Accepted
time: 3ms
memory: 4480kb
input:
300 600 156 66 29 32 43 43 187 269 102 46 179 247 32 40 165 20 96 93 123 16 0 107 41 298 97 153 32 106 74 132 3 0 115 34 104 4 0 13 0 25 0 156 83 30 0 276 170 99 70 232 210 14 0 128 14 0 21 0 203 53 5 0 6 0 251 230 90 10 0 151 284 97 103 67 255 152 42 0 58 155 102 298 131 42 0 93 245 244 179 225 154...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 -16 20 20 2 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 -3 29 29 2 30 1 31 1 32 1 -4 32 32 2 -13 32 32 3 -25 32 32 4 33 1 34 1 -30 34 34 2 35 1 36 1 37 1 38 1 39 1 40 1 -14 40 40 2 41 1 -14 41 41 2 -21 41 41 ...
result:
ok
Test #92:
score: 0
Accepted
time: 0ms
memory: 4176kb
input:
299 598 166 172 166 166 166 166 166 13 166 166 79 166 8 0 108 15 14 0 242 24 166 134 58 115 124 249 166 16 0 215 166 60 166 166 166 166 166 166 166 166 166 166 166 166 92 166 166 175 166 172 166 166 181 137 90 166 166 78 71 166 166 166 144 19 0 216 166 26 0 202 166 166 233 166 166 166 166 177 118 16...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 -8 13 13 2 14 1 15 1 -14 15 15 2 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 -16 24 24 2 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1...
result:
ok
Test #93:
score: 0
Accepted
time: 0ms
memory: 4424kb
input:
300 600 272 272 272 272 272 272 272 272 40 272 62 272 272 272 157 99 272 198 29 272 272 272 73 272 272 272 272 272 19 0 214 112 85 272 272 182 272 272 272 272 272 9 0 278 272 272 272 272 204 272 272 272 127 281 272 272 216 249 281 242 272 272 91 224 272 11 0 173 120 170 272 79 205 195 272 272 272 21...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 -19 29 29 2 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 -9 40 40 2 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 5...
result:
ok
Test #94:
score: 0
Accepted
time: 5ms
memory: 4220kb
input:
299 598 3 4 1 0 6 2 0 5 4 0 8 3 0 7 6 0 9 5 0 10 7 0 12 8 0 13 12 9 0 11 0 13 10 0 12 0 15 15 13 0 14 0 17 19 15 0 20 21 16 0 20 17 0 19 0 22 18 0 22 20 0 21 0 24 25 22 0 26 23 0 26 24 0 25 0 27 26 0 29 31 27 0 32 32 28 0 33 29 0 30 0 35 31 0 35 35 32 0 33 0 34 0 36 35 0 37 36 0 38 37 0 41 40 39 0 4...
output:
1 1 2 1 3 1 -1 3 3 2 4 1 -2 4 4 2 5 1 -4 5 5 2 6 1 -3 6 6 2 7 1 -6 7 7 2 8 1 -5 8 8 2 9 1 -7 9 9 2 10 1 -8 10 10 2 11 1 12 1 -9 12 12 2 -11 12 12 3 13 1 -10 13 13 2 -12 13 13 3 14 1 15 1 -13 15 15 2 -14 15 15 3 16 1 17 1 -15 17 17 2 18 1 19 1 -16 19 19 2 20 1 -17 20 20 2 -19 20 20 3 21 1 -18 21 21 2...
result:
ok
Test #95:
score: 0
Accepted
time: 0ms
memory: 4480kb
input:
300 600 4 5 5 1 0 7 2 0 3 0 6 5 0 7 4 0 6 0 10 10 11 7 0 8 0 11 9 0 10 0 14 14 16 11 0 12 0 15 14 0 17 13 0 18 15 0 18 16 0 17 0 20 22 18 0 23 22 19 0 21 0 23 20 0 22 0 25 26 23 0 27 24 0 28 25 0 28 26 0 27 0 31 30 29 0 33 28 0 32 31 0 33 30 0 32 0 35 36 33 0 37 34 0 39 35 0 39 40 36 0 37 0 41 38 0 ...
output:
1 1 2 1 3 1 4 1 -1 4 4 2 5 1 -2 5 5 2 -3 5 5 3 6 1 -5 6 6 2 7 1 -4 7 7 2 -6 7 7 3 8 1 9 1 10 1 -7 10 10 2 -8 10 10 3 11 1 -9 11 11 2 -10 11 11 3 12 1 13 1 14 1 -11 14 14 2 -12 14 14 3 15 1 -14 15 15 2 16 1 -13 16 16 2 17 1 -15 17 17 2 18 1 -16 18 18 2 -17 18 18 3 19 1 20 1 -18 20 20 2 21 1 22 1 -19 ...
result:
ok
Test #96:
score: 0
Accepted
time: 1ms
memory: 4184kb
input:
300 600 55 117 46 77 114 154 64 109 111 123 59 152 90 99 111 45 80 80 152 113 144 110 158 104 148 121 91 37 109 122 73 147 132 102 173 57 28 0 182 50 149 187 129 69 52 166 16 0 174 3 0 48 113 46 0 59 128 38 0 166 57 43 0 170 107 131 1 0 95 68 36 0 51 0 152 187 11 0 48 0 138 113 162 211 144 7 0 129 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 -28 37 37 2 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 -16 45 45 2 46 1 -3 46 46 2 47 1 48 1 -46 48 48 2 49 1 50 1 -38 50 50 2 ...
result:
ok
Test #97:
score: 0
Accepted
time: 0ms
memory: 4180kb
input:
300 600 274 208 127 168 154 108 186 84 219 114 287 73 29 31 199 98 272 218 229 169 219 24 239 22 0 79 245 189 220 88 13 0 134 132 14 0 124 38 226 43 98 261 65 32 0 45 127 248 279 90 34 0 182 271 38 0 241 158 167 67 224 268 91 87 184 233 177 111 291 188 286 237 216 168 144 271 37 0 298 193 48 0 140 2...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 -22 24 24 2 25 1 26 1 27 1 28 1 29 1 -13 29 29 2 30 1 31 1 -14 31 31 2 32 1 33 1 34 1 35 1 36 1 37 1 38 1 -32 38 38 2 39 1 40 1 41 1 42 1 43 1 -34 43 43 2 44 1 45 1 -38 45 45 2 46 1 47 1 48...
result:
ok
Test #98:
score: 0
Accepted
time: 0ms
memory: 4440kb
input:
299 598 297 4 4 2 0 3 0 7 8 9 4 0 10 5 0 9 6 0 8 0 10 7 0 9 0 11 10 0 13 15 11 0 16 15 12 0 14 0 16 13 0 15 0 17 16 0 20 21 22 17 0 23 18 0 24 19 0 23 20 0 22 0 24 21 0 23 0 25 24 0 26 25 0 27 26 0 29 29 27 0 28 0 32 33 32 29 0 31 0 34 30 0 34 32 0 33 0 35 34 0 37 37 35 0 36 0 40 39 38 0 42 37 0 41 ...
output:
1 1 2 1 3 1 4 1 -2 4 4 2 -3 4 4 3 5 1 6 1 7 1 -4 7 7 2 8 1 -5 8 8 2 9 1 -6 9 9 2 -8 9 9 3 10 1 -7 10 10 2 -9 10 10 3 11 1 -10 11 11 2 12 1 13 1 -11 13 13 2 14 1 15 1 -12 15 15 2 -14 15 15 3 16 1 -13 16 16 2 -15 16 16 3 17 1 -16 17 17 2 18 1 19 1 20 1 -17 20 20 2 21 1 -18 21 21 2 22 1 -19 22 22 2 23 ...
result:
ok
Test #99:
score: 0
Accepted
time: 3ms
memory: 4188kb
input:
300 600 298 3 2 0 5 5 3 0 4 0 7 7 5 0 6 0 8 7 0 11 12 13 8 0 13 9 0 14 10 0 11 0 16 12 0 15 14 0 16 13 0 15 0 18 18 16 0 17 0 20 20 18 0 19 0 23 23 23 20 0 21 0 22 0 26 26 27 23 0 24 0 28 25 0 30 26 0 31 32 27 0 33 28 0 33 29 0 34 30 0 31 0 34 32 0 33 0 36 38 34 0 38 39 35 0 36 0 40 37 0 41 38 0 42 ...
output:
1 1 2 1 3 1 -2 3 3 2 4 1 5 1 -3 5 5 2 -4 5 5 3 6 1 7 1 -5 7 7 2 -6 7 7 3 8 1 -7 8 8 2 9 1 10 1 11 1 -8 11 11 2 12 1 -9 12 12 2 13 1 -10 13 13 2 -11 13 13 3 14 1 -12 14 14 2 15 1 -14 15 15 2 16 1 -13 16 16 2 -15 16 16 3 17 1 18 1 -16 18 18 2 -17 18 18 3 19 1 20 1 -18 20 20 2 -19 20 20 3 21 1 22 1 23 ...
result:
ok
Test #100:
score: 0
Accepted
time: 0ms
memory: 4128kb
input:
300 600 211 118 92 36 35 145 94 117 137 36 71 153 116 24 71 143 139 36 76 167 91 45 27 14 0 170 87 31 23 0 31 38 37 36 26 0 27 0 58 88 155 160 5 0 73 4 0 10 0 18 0 30 0 73 29 0 143 28 0 180 103 94 186 149 147 99 22 0 162 161 86 55 122 53 162 173 50 0 115 176 48 0 87 65 88 31 0 182 152 135 141 77 116...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 -14 24 24 2 25 1 26 1 27 1 -23 27 27 2 28 1 29 1 30 1 31 1 -26 31 31 2 -27 31 31 3 32 1 33 1 34 1 35 1 -5 35 35 2 36 1 -4 36 36 2 -10 36 36 3 -18 36 36 4 -30 36 36 5 37 1 -29 37 37 2 38 1 -...
result:
ok
Test #101:
score: 0
Accepted
time: 1ms
memory: 4216kb
input:
300 600 77 89 191 243 145 67 272 178 172 228 282 260 126 259 206 243 126 187 234 161 187 125 255 120 234 215 48 185 130 218 214 143 59 192 250 142 67 94 95 105 228 209 85 180 95 134 286 27 0 147 242 209 66 291 105 271 252 123 242 135 33 0 295 137 186 297 232 152 172 51 0 299 6 0 37 0 195 249 179 230...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 -27 48 48 2 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 -3...
result:
ok
Test #102:
score: 0
Accepted
time: 0ms
memory: 4196kb
input:
299 598 61 172 231 27 98 12 121 13 54 100 120 6 0 218 8 0 218 15 14 0 218 198 128 259 58 115 193 218 218 215 155 218 4 0 218 196 218 74 166 153 226 37 218 40 34 0 218 43 94 36 0 218 284 175 38 0 218 201 218 75 275 168 294 148 207 78 71 9 0 218 197 183 144 19 0 218 283 202 1 0 218 289 240 218 113 119...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 -6 12 12 2 13 1 -8 13 13 2 14 1 15 1 -14 15 15 2 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 -4 27 27 2 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 -34 37 37 2 38 1 39 1 40 1 -36 40 40 2 41 1 42 1 43 1 -38 43 43 2 44 1 45 1 46 ...
result:
ok
Test #103:
score: 0
Accepted
time: 0ms
memory: 4196kb
input:
300 600 201 209 47 17 284 27 25 196 157 167 100 256 163 65 193 161 4 0 263 263 158 261 36 171 73 119 7 0 263 252 6 0 263 152 214 112 298 44 221 182 176 21 0 263 136 263 263 263 83 272 97 32 0 263 215 51 3 0 263 88 213 281 46 0 263 118 216 288 285 263 250 191 254 227 246 173 233 263 14 0 263 79 205 1...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 -4 17 17 2 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 -7 25 25 2 26 1 27 1 -6 27 27 2 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -21 36 36 2 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 -32 44 44 2 45 1 46 1 47 1 -3 47 47 2 48 1 4...
result:
ok
Test #104:
score: 0
Accepted
time: 5ms
memory: 4128kb
input:
299 598 2 1 0 5 43 77 2 0 157 8 176 6 0 115 116 142 206 40 6 0 167 50 2 0 120 182 53 105 198 55 290 165 111 122 51 102 164 63 124 238 38 50 149 224 215 80 80 31 0 164 2 0 121 12 0 204 82 125 3 0 155 122 95 270 57 52 74 14 0 32 0 219 2 0 25 0 1 2 0 48 0 1 17 0 89 131 20 0 168 145 47 0 189 124 72 17 0...
output:
1 1 2 1 -1 2 2 2 3 1 4 1 5 1 -2 5 5 2 6 1 7 1 8 1 -6 8 8 2 9 1 10 1 11 1 12 1 13 1 -6 13 13 2 14 1 15 1 -2 15 15 2 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 -31 38 38 2 39 1 -2 39 39 2 40 1 -12 40 40 2 41 1 42 1 43 1 -3 43 43 2...
result:
ok
Test #105:
score: 0
Accepted
time: 0ms
memory: 4444kb
input:
300 600 41 24 174 247 21 34 59 176 43 27 21 169 197 173 189 33 237 23 94 120 5 0 11 0 148 167 18 0 258 2 0 283 89 178 10 0 207 89 105 58 178 75 16 0 262 6 0 157 195 2 0 131 2 0 49 114 269 238 1 0 76 171 9 0 200 2 0 24 177 69 113 60 37 0 300 69 98 190 220 75 64 142 116 30 0 217 7 0 125 48 0 102 140 8...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 -5 21 21 2 -11 21 21 3 22 1 23 1 -18 23 23 2 24 1 -2 24 24 2 25 1 26 1 27 1 -10 27 27 2 28 1 29 1 30 1 31 1 32 1 33 1 -16 33 33 2 34 1 -6 34 34 2 35 1 36 1 -2 36 36 2 37 1 -2 37 37 2 38 1 39 1 40 1 41 1 -...
result:
ok
Test #106:
score: 0
Accepted
time: 3ms
memory: 4244kb
input:
299 598 135 89 50 64 23 263 38 215 51 285 114 88 133 53 36 46 217 156 25 81 296 61 5 0 140 245 19 0 136 164 107 166 248 191 157 37 159 47 119 15 0 260 32 0 193 7 0 89 88 94 53 15 0 181 176 215 114 16 0 277 34 0 79 52 75 3 0 216 9 0 272 48 0 205 14 0 41 0 199 193 253 71 236 113 113 108 22 0 69 206 87...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 -5 23 23 2 24 1 25 1 -19 25 25 2 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 -15 36 36 2 37 1 -32 37 37 2 38 1 -7 38 38 2 39 1 40 1 41 1 42 1 -15 42 42 2 43 1 44 1 45 1 46 1 -16 46 46...
result:
ok
Test #107:
score: 0
Accepted
time: 0ms
memory: 4128kb
input:
300 600 224 16 41 52 92 268 106 102 273 74 15 120 262 205 11 0 129 2 0 41 60 32 234 273 180 292 110 125 206 61 28 27 0 266 39 202 55 18 0 58 160 48 235 80 61 61 18 0 29 0 182 128 3 0 16 0 79 70 175 83 142 210 192 34 0 126 261 186 93 4 0 78 142 76 31 0 56 55 0 31 182 32 0 18 255 17 0 103 26 0 37 0 38...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 -11 15 15 2 16 1 -2 16 16 2 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -27 28 28 2 29 1 30 1 31 1 32 1 -18 32 32 2 33 1 34 1 35 1 36 1 37 1 38 1 39 1 -18 39 39 2 -29 39 39 3 40 1 41 1 -3 41 41 2 -16 41 41 3 42 1 43 1 ...
result:
ok
Test #108:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
300 600 249 79 125 74 30 137 170 153 102 78 282 89 63 139 53 121 251 195 88 247 142 209 179 70 109 280 168 131 64 5 0 223 130 147 176 41 38 51 264 35 0 42 102 225 34 0 84 38 0 244 267 34 0 41 73 239 161 38 0 35 69 214 36 0 111 224 15 0 141 232 256 114 175 153 99 110 134 136 13 0 93 29 0 197 151 246 ...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 -5 30 30 2 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 -35 38 38 2 39 1 40 1 41 1 -34 41 41 2 42 1 -38 42 42 2 43 1 44 1 -34 44 44 2 45 1 46 1 47 1 48 1 -38 48 48 ...
result:
ok
Test #109:
score: 0
Accepted
time: 2ms
memory: 4180kb
input:
300 600 182 28 45 213 147 102 159 13 52 269 72 224 8 0 79 84 92 204 105 30 77 104 128 128 85 166 80 221 263 2 0 73 133 18 0 78 135 127 149 40 51 155 155 210 161 34 0 53 283 68 255 109 3 0 63 184 147 112 281 69 35 0 250 9 0 108 40 0 80 276 105 86 163 135 275 204 66 161 45 0 93 142 134 61 0 141 300 42...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 -8 13 13 2 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 -2 28 28 2 29 1 30 1 -18 30 30 2 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 -34 40 40 2 41 1 42 1 43 1 44 1 45 1 -3 45 45 2 46 1 47 1 48 1 49 1 50 1 51...
result:
ok
Test #110:
score: 0
Accepted
time: 3ms
memory: 4472kb
input:
299 598 273 32 289 190 167 263 167 105 129 145 256 67 22 86 31 193 117 50 102 57 155 13 0 158 212 203 45 47 178 107 36 37 15 0 119 2 0 182 44 217 73 29 0 237 30 0 65 126 224 224 101 126 213 33 0 160 25 0 121 133 26 0 176 116 56 18 0 190 112 231 153 56 141 49 0 54 0 189 20 0 284 136 100 160 98 64 142...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 -13 22 22 2 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 -15 31 31 2 32 1 -2 32 32 2 33 1 34 1 35 1 36 1 -29 36 36 2 37 1 -30 37 37 2 38 1 39 1 40 1 41 1 42 1 43 1 44 1 -33 44 44 2 45 1 -25 45 45 2 4...
result:
ok
Test #111:
score: 0
Accepted
time: 4ms
memory: 4476kb
input:
300 600 141 70 68 255 287 38 56 105 253 84 13 216 11 0 205 77 162 83 169 116 174 183 47 63 147 95 33 82 226 110 118 109 194 149 25 0 280 208 170 61 61 6 0 39 38 0 97 108 252 87 49 199 81 145 21 0 87 57 43 0 234 213 80 60 113 205 259 7 0 167 48 0 188 133 124 52 0 257 36 0 37 0 171 145 22 0 186 219 19...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 -11 13 13 2 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 -25 33 33 2 34 1 35 1 36 1 37 1 38 1 -6 38 38 2 39 1 -38 39 39 2 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 -21 47 47 2 48 1 49 1 -43 4...
result:
ok
Test #112:
score: 0
Accepted
time: 4ms
memory: 4180kb
input:
300 600 39 122 17 136 208 22 268 245 138 248 299 31 286 162 300 132 3 0 141 57 152 111 200 6 0 203 36 74 62 150 97 90 39 46 12 0 65 43 261 45 213 23 0 72 23 0 36 295 1 0 29 0 63 242 245 261 32 0 117 172 34 0 46 30 0 45 0 64 45 0 34 72 54 66 258 103 121 49 0 183 75 95 18 0 247 122 113 144 98 25 0 279...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 -3 17 17 2 18 1 19 1 20 1 21 1 22 1 -6 22 22 2 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 -12 31 31 2 32 1 33 1 34 1 35 1 36 1 -23 36 36 2 37 1 -23 37 37 2 38 1 39 1 -1 39 39 2 -29 39 39 3 40 1 41 1 42 1 43 1 -32 43 43 2 4...
result:
ok
Test #113:
score: 0
Accepted
time: 0ms
memory: 4180kb
input:
300 600 150 20 186 13 9 281 17 80 5 0 285 24 19 61 4 0 53 74 124 132 7 0 29 124 11 0 155 2 0 168 85 201 220 10 0 125 237 73 59 41 7 0 32 75 152 29 0 118 174 45 145 10 0 66 111 216 73 57 28 0 201 290 48 136 34 0 124 59 230 43 0 195 67 258 137 11 0 62 13 0 66 57 115 70 7 0 40 0 54 0 86 226 27 0 46 0 9...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 -5 9 9 2 10 1 11 1 12 1 13 1 -4 13 13 2 14 1 15 1 16 1 17 1 -7 17 17 2 18 1 19 1 -11 19 19 2 20 1 -2 20 20 2 21 1 22 1 23 1 24 1 -10 24 24 2 25 1 26 1 27 1 28 1 29 1 -7 29 29 2 30 1 31 1 32 1 -29 32 32 2 33 1 34 1 35 1 36 1 -10 36 36 2 37 1 38 1 39 1 40 1 41 1 -28...
result:
ok
Test #114:
score: 0
Accepted
time: 1ms
memory: 4240kb
input:
299 598 104 7 275 44 43 151 2 0 279 70 26 221 41 39 181 167 112 91 94 133 82 64 188 81 237 25 24 0 40 9 0 273 78 57 98 72 80 190 118 185 2 0 255 114 49 115 12 0 50 25 0 85 11 0 143 124 5 0 194 4 0 125 194 89 169 76 37 0 285 39 0 110 68 243 88 75 177 2 0 83 28 0 210 109 97 206 74 134 205 20 0 221 126...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 -2 7 7 2 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 -24 25 25 2 26 1 -9 26 26 2 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 -2 35 35 2 36 1 37 1 38 1 39 1 -12 39 39 2 40 1 -25 40 40 2 41 1 -11 41 41 2 42 1 43 1 -5 43 43 2 44 1...
result:
ok
Test #115:
score: 0
Accepted
time: 1ms
memory: 4188kb
input:
300 600 10 5 112 18 2 0 297 222 101 103 106 1 0 128 120 65 84 110 282 102 39 4 0 89 39 129 159 4 0 152 2 0 277 88 197 152 85 80 155 251 108 162 254 78 42 153 47 130 17 0 19 0 169 58 43 2 0 35 0 5 41 0 208 122 55 62 37 0 179 2 0 211 102 90 84 174 144 187 45 0 222 253 201 40 0 119 77 187 196 46 0 271 ...
output:
1 1 2 1 3 1 4 1 5 1 -2 5 5 2 6 1 7 1 8 1 9 1 10 1 -1 10 10 2 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 -4 18 18 2 19 1 20 1 21 1 22 1 -4 22 22 2 23 1 -2 23 23 2 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 -17 39 39 2 -19 39 39 3 40 1 41 1 42 1 -2 42 42 2 -35 42 42 3...
result:
ok
Test #116:
score: 0
Accepted
time: 0ms
memory: 4216kb
input:
300 600 158 20 294 21 47 10 30 282 88 6 0 266 66 121 170 78 153 63 77 86 88 2 0 112 4 0 59 2 0 75 185 2 0 202 185 84 122 183 256 7 0 278 127 46 49 195 38 209 117 35 0 269 97 141 118 78 87 2 0 81 172 32 0 210 5 0 114 285 33 0 177 260 119 81 71 72 159 216 93 192 4 0 249 102 286 106 16 0 178 196 137 11...
output:
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 -6 10 10 2 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 -2 20 20 2 21 1 -4 21 21 2 22 1 -2 22 22 2 23 1 24 1 -2 24 24 2 25 1 26 1 27 1 28 1 29 1 30 1 -7 30 30 2 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 -35 38 38 2 39 1 40 1 41 1 42 1 43 1 44 1 -2 44 44 2 ...
result:
ok
Test #117:
score: 0
Accepted
time: 0ms
memory: 4188kb
input:
300 600 8 54 51 5 4 0 24 73 62 1 0 45 13 45 161 100 9 0 37 90 69 132 300 23 67 229 81 165 18 0 115 5 0 91 35 152 41 212 102 234 74 162 134 112 25 0 72 95 13 0 39 228 37 0 262 65 27 0 258 103 217 166 8 0 10 0 1 199 168 77 86 205 3 0 203 68 91 2 0 119 58 87 217 27 0 55 0 41 210 188 64 7 0 293 236 61 0...
output:
1 1 2 1 3 1 4 1 5 1 -4 5 5 2 6 1 7 1 8 1 -1 8 8 2 9 1 10 1 11 1 12 1 13 1 -9 13 13 2 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 -18 23 23 2 24 1 -5 24 24 2 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 -25 35 35 2 36 1 37 1 -13 37 37 2 38 1 39 1 -37 39 39 2 40 1 41 1 -27 41 41 2 42 1...
result:
ok
Extra Test:
score: 0
Extra Test Passed