QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#133195 | #2674. Vision program | bashkort# | 34 | 9ms | 4760kb | C++20 | 2.1kb | 2023-08-01 17:31:00 | 2024-07-04 01:07:35 |
Judging History
answer
#include "vision.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void construct_network(int H, int W, int K) {
vector<int> R(H), C(W);
auto toi = [&](int x, int y) {
return x * W + y;
};
for (int i = 0; i < H; ++i) {
vector<int> a;
for (int j = 0; j < W; ++j) {
a.push_back(toi(i, j));
}
R[i] = add_or(a);
}
for (int j = 0; j < W; ++j) {
vector<int> a;
for (int i = 0; i < H; ++i) {
a.push_back(toi(i, j));
}
C[j] = add_or(a);
}
vector<int> orz;
for (int x = 1; x < K; ++x) {
int y = K - x;
if (y >= W || x >= H) {
continue;
}
vector<int> ax, ay;
for (int i = 0; i + x < H && i < 1; ++i) {
ax.push_back(add_and({R[i], R[i + x]}));
}
for (int j = 0; j + y < W && j < 1; ++j) {
ay.push_back(add_and({C[j], C[j + y]}));
}
orz.push_back(add_and({add_or(ax), add_or(ay)}));
}
// handle x = 0 && x = K separately
if (K < W) {
// case 1: x = 0
vector<int> ax, ay;
for (int i = 0; i < H; ++i) {
vector<int> xr;
for (int j = 0; j < W; ++j) {
xr.push_back(toi(i, j));
}
ax.push_back(add_not(add_xor(xr)));
}
for (int j = 0; j + K < W; ++j) {
ay.push_back(add_and({C[j], C[j + K]}));
}
ax.push_back(add_or(ay));
orz.push_back(add_and(ax));
}
if (K < H) {
// case 2: x = K
vector<int> ax, ay;
for (int i = 0; i + K < H; ++i) {
ay.push_back(add_and({R[i], R[i + K]}));
}
for (int j = 0; j < W; ++j) {
vector<int> xr;
for (int i = 0; i < H; ++i) {
xr.push_back(toi(i, j));
}
ax.push_back(add_not(add_xor(xr)));
}
ax.push_back(add_or(ay));
orz.push_back(add_and(ax));
}
add_or(orz);
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 10
Accepted
time: 1ms
memory: 3736kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 3 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 11 1 3 0 1 2 1 1 0 1 1 1 1 1 2 2 3 0 1 2 3 7 0 2 4 5 0 2 5 6 1 2 9 10 0 2 8 11 1 1 12
result:
ok
Test #2:
score: 10
Accepted
time: 0ms
memory: 3856kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 3 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 10 1 3 0 1 2 1 1 0 1 1 1 1 1 2 2 3 0 1 2 3 7 0 2 4 6 1 1 9 0 2 8 10 1 1 11
result:
ok
Test #3:
score: 10
Accepted
time: 0ms
memory: 3860kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 1 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 11 1 1 0 1 1 1 1 1 2 1 3 0 1 2 0 2 3 4 0 2 4 5 2 3 0 1 2 3 9 1 2 7 8 0 2 10 11 1 1 12
result:
ok
Test #4:
score: 10
Accepted
time: 0ms
memory: 3844kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 1 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 10 1 1 0 1 1 1 1 1 2 1 3 0 1 2 0 2 3 5 2 3 0 1 2 3 8 1 1 7 0 2 9 10 1 1 11
result:
ok
Test #5:
score: 10
Accepted
time: 0ms
memory: 3720kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 19 1 2 0 1 1 2 2 3 1 2 0 2 1 2 1 3 2 2 0 1 3 8 2 2 2 3 3 10 0 2 6 7 1 1 12 0 3 9 11 13 0 2 4 5 2 2 0 2 3 16 2 2 1 3 3 18 1 1 15 0 3 17 19 20 1 2 14 21
result:
ok
Test #6:
score: 10
Accepted
time: 0ms
memory: 3828kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 10 1 2 0 1 1 2 2 3 1 2 0 2 1 2 1 3 0 2 4 5 0 2 6 7 1 1 8 1 1 9 0 2 10 11 1 1 12
result:
ok
Test #7:
score: 10
Accepted
time: 0ms
memory: 3736kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 3 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 23 1 3 0 1 2 1 3 3 4 5 1 2 0 3 1 2 1 4 1 2 2 5 2 3 0 1 2 3 11 2 3 3 4 5 3 13 0 2 8 9 0 2 9 10 1 2 15 16 0 3 12 14 17 0 2 6 7 2 2 0 3 3 20 2 2 1 4 3 22 2 2 2 5 3 24 1 1 19 0 4 21 23 25 26 1 2 18 27
result:
ok
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 3736kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 3 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 18 1 3 0 1 2 1 3 3 4 5 1 2 0 3 1 2 1 4 1 2 2 5 0 2 6 7 0 2 8 9 1 1 11 1 1 12 0 2 13 14 2 3 0 1 2 3 16 2 3 3 4 5 3 18 0 2 8 10 1 1 20 0 3 17 19 21 1 2 15 22
result:
wrong answer on inputs (0, 2), (1, 1), expected 1, but computed 0
Subtask #2:
score: 0
Wrong Answer
Test #19:
score: 11
Accepted
time: 0ms
memory: 3940kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 9 3 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 21 1 9 0 1 2 3 4 5 6 7 8 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 2 9 0 1 2 3 4 5 6 7 8 3 19 0 2 10 13 0 2 11 14 0 2 12 15 0 2 13 16 0 2 14 17 0 2 15 18 1 6 21 22 23 24 25 26 0 2 20 27 1 1 28
result:
ok
Test #20:
score: 11
Accepted
time: 1ms
memory: 3776kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 9 1 5 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 19 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 9 0 1 2 3 4 5 6 7 8 0 2 9 14 0 2 10 15 0 2 11 16 0 2 12 17 2 9 0 1 2 3 4 5 6 7 8 3 23 1 4 19 20 21 22 0 2 24 25 1 1 26
result:
ok
Test #21:
score: 0
Wrong Answer
time: 0ms
memory: 3712kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 10 5 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 66 1 5 0 1 2 3 4 1 5 5 6 7 8 9 1 5 10 11 12 13 14 1 5 15 16 17 18 19 1 5 20 21 22 23 24 1 5 25 26 27 28 29 1 5 30 31 32 33 34 1 5 35 36 37 38 39 1 5 40 41 42 43 44 1 5 45 46 47 48 49 1 10 0 5 10 15 20 25 30 35 40 45 1 10 1 6 11 16 21 26 31 36 41 46 1 10 2 7 12...
result:
wrong answer on inputs (0, 2), (1, 1), expected 1, but computed 0
Subtask #3:
score: 0
Skipped
Dependency #2:
0%
Subtask #4:
score: 0
Skipped
Dependency #3:
0%
Subtask #5:
score: 12
Accepted
Test #48:
score: 12
Accepted
time: 1ms
memory: 3880kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 403 1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #49:
score: 12
Accepted
time: 0ms
memory: 3864kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 99 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 305 1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #50:
score: 12
Accepted
time: 1ms
memory: 4036kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 100 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 304 1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #51:
score: 12
Accepted
time: 1ms
memory: 3756kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 198 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 206 1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #52:
score: 12
Accepted
time: 1ms
memory: 3812kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 199 1 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 402 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #53:
score: 12
Accepted
time: 0ms
memory: 3796kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 199 1 66 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 338 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #54:
score: 12
Accepted
time: 1ms
memory: 4036kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 199 1 133 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 271 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #55:
score: 12
Accepted
time: 1ms
memory: 3752kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 199 1 197 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 207 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #56:
score: 12
Accepted
time: 1ms
memory: 3872kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 200 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 405 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #57:
score: 12
Accepted
time: 1ms
memory: 3752kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 200 50 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 356 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #58:
score: 12
Accepted
time: 1ms
memory: 3748kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 200 99 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 307 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #59:
score: 12
Accepted
time: 1ms
memory: 4040kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 200 100 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 306 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #60:
score: 12
Accepted
time: 1ms
memory: 3796kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 200 149 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 257 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #61:
score: 12
Accepted
time: 1ms
memory: 3796kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 200 199 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 207 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #62:
score: 12
Accepted
time: 1ms
memory: 3800kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 1 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 405 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #63:
score: 12
Accepted
time: 1ms
memory: 3776kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 1 51 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 355 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #64:
score: 12
Accepted
time: 0ms
memory: 3744kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 1 99 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 307 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #65:
score: 12
Accepted
time: 0ms
memory: 3772kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 1 100 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 306 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #66:
score: 12
Accepted
time: 1ms
memory: 4036kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 1 150 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 256 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #67:
score: 12
Accepted
time: 0ms
memory: 3952kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 1 199 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 207 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #68:
score: 12
Accepted
time: 0ms
memory: 3736kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 2 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 9 1 2 0 1 1 1 0 1 1 1 2 2 0 1 3 5 0 2 3 4 1 1 7 0 2 6 8 1 1 9
result:
ok
Test #69:
score: 12
Accepted
time: 0ms
memory: 3716kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 1 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 9 1 1 0 1 1 1 1 2 0 1 0 2 2 3 2 2 0 1 3 6 1 1 5 0 2 7 8 1 1 9
result:
ok
Subtask #6:
score: 8
Accepted
Test #70:
score: 8
Accepted
time: 0ms
memory: 4016kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 1 3 128 128 129 128 130 128 131
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 19 1 2 0 1 1 2 2 3 1 2 0 2 1 2 1 3 2 2 0 1 3 8 2 2 2 3 3 10 0 2 6 7 1 1 12 0 3 9 11 13 0 2 4 5 2 2 0 2 3 16 2 2 1 3 3 18 1 1 15 0 3 17 19 20 1 2 14 21
result:
ok
Test #71:
score: 8
Accepted
time: 0ms
memory: 4012kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 2 3 129 129 128 129 131 129 130
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 10 1 2 0 1 1 2 2 3 1 2 0 2 1 2 1 3 0 2 4 5 0 2 6 7 1 1 8 1 1 9 0 2 10 11 1 1 12
result:
ok
Test #72:
score: 8
Accepted
time: 1ms
memory: 3812kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 1 8 254 254 255 254 227 254 252 254 196 254 224 254 2958 254 2986 254 226
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 523 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83...
result:
ok
Test #73:
score: 8
Accepted
time: 1ms
memory: 3904kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 31 92 284 284 330 284 634 284 598 284 114 284 366 284 966 284 814 284 922 284 510 284 474 284 194 284 930 284 42 284 230 284 1002 284 438 284 526 284 778 284 186 284 6 284 958 284 150 284 562 284 886 284 78 284 402 284 850 284 482 284 222 284 367 284 671 2...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 401 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83...
result:
ok
Test #74:
score: 8
Accepted
time: 1ms
memory: 3800kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 64 92 317 317 1326 317 1566 317 1090 317 1962 317 1046 317 1890 317 2034 317 1190 317 1934 317 1442 317 1074 317 1846 317 1118 317 1234 317 1298 317 1162 317 1862 317 1398 317 2006 317 1918 317 1470 317 1262 317 1514 317 1370 317 1594 317 1486 317 1414 317...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 368 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83...
result:
ok
Test #75:
score: 8
Accepted
time: 1ms
memory: 4072kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 95 92 348 348 1738 348 3066 348 1682 348 2058 348 2886 348 3030 348 2830 348 2094 348 2866 348 1774 348 2454 348 2310 348 2546 348 2490 348 2238 348 2258 348 2510 348 2142 348 2394 348 2294 348 2402 348 2202 348 2114 348 2922 348 2430 348 1718 348 2210 348...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 337 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83...
result:
ok
Test #76:
score: 8
Accepted
time: 1ms
memory: 3892kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 128 7 381 381 2606 381 2578 381 2573 381 2601 381 352 381 353 381 380
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 136 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83...
result:
ok
Test #77:
score: 8
Accepted
time: 0ms
memory: 3980kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 1 8 303 303 302 303 424 303 301 303 33 303 423 303 5660 303 6018 303 425
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 719 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #78:
score: 8
Accepted
time: 2ms
memory: 3856kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 45 97 347 347 375 347 6133 347 523 347 4413 347 653 347 1205 347 99 347 4137 347 2885 347 489 347 3097 347 2397 347 1755 347 2519 347 4535 347 229 347 5369 347 2673 347 2121 347 3071 347 5191 347 3585 347 3771 347 3437 347 1075 347 4901 347 4817 347 1465 3...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 575 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #79:
score: 8
Accepted
time: 2ms
memory: 4088kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 89 97 391 391 479 391 5981 391 1413 391 3439 391 3021 391 1949 391 6099 391 4657 391 2903 391 1697 391 5445 391 5193 391 3557 391 2651 391 2367 391 763 391 1295 391 4491 391 2485 391 1043 391 1161 391 4909 391 4791 391 4373 391 2115 391 4255 391 2233 391 3...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 531 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #80:
score: 8
Accepted
time: 0ms
memory: 3872kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 133 96 435 435 311 435 5813 435 5939 435 2265 435 2115 435 5193 435 1287 435 3515 435 2895 435 1761 435 4491 435 4689 435 2391 435 3987 435 5469 435 4217 435 2609 435 3113 435 1643 435 4365 435 539 435 1919 435 657 435 3389 435 3861 435 3013 435 3585 435 5...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 487 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #81:
score: 8
Accepted
time: 1ms
memory: 3784kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 177 7 479 479 6003 479 5869 479 5868 479 6002 479 344 479 345 479 478
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 185 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #82:
score: 8
Accepted
time: 1ms
memory: 3728kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 1 3 324 324 325 324 326 324 386
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 403 1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #83:
score: 8
Accepted
time: 1ms
memory: 3748kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 60 5 383 383 324 383 323 383 322 383 441 383 382
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 344 1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #84:
score: 8
Accepted
time: 1ms
memory: 3884kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 137 5 460 460 324 460 325 460 326 460 266 460 461
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 267 1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #85:
score: 8
Accepted
time: 1ms
memory: 4052kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 198 3 521 521 716 521 719 521 520
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 206 1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #86:
score: 8
Accepted
time: 1ms
memory: 3884kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 199 1 1 3 324 324 325 324 326 324 386
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 403 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #87:
score: 8
Accepted
time: 1ms
memory: 4048kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 199 1 99 5 422 422 452 422 453 422 450 422 352 422 423
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 305 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #88:
score: 8
Accepted
time: 0ms
memory: 3860kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 199 1 198 3 521 521 716 521 719 521 520
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 206 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #89:
score: 8
Accepted
time: 5ms
memory: 4232kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 100 1 8 424 424 425 424 460 424 426 424 352 424 461 424 20407 424 19476 424 459
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1203 1 100 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #90:
score: 8
Accepted
time: 4ms
memory: 4152kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 100 100 99 523 523 616 523 9383 523 2364 523 4251 523 8140 523 5966 523 5532 523 8700 523 4879 523 2449 523 7512 523 5221 523 9809 523 7138 523 6215 523 7829 523 3885 523 5617 523 4134 523 4661 523 6526 523 2580 523 5865 523 10221 523 4778 523 8389 523 2053 5...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1098 1 100 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #91:
score: 8
Accepted
time: 4ms
memory: 4232kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 100 199 99 622 622 9569 622 20278 622 15777 622 15345 622 10838 622 19321 622 12328 622 12732 622 17420 622 13171 622 17792 622 18637 622 12857 622 15719 622 13294 622 14872 622 16835 622 11775 622 13012 622 16244 622 19220 622 13545 622 14444 622 12113 622 1...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 999 1 100 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #92:
score: 8
Accepted
time: 0ms
memory: 3960kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 100 298 7 721 721 20330 721 19663 721 19662 721 20333 721 693 721 690 721 720
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 306 1 100 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #93:
score: 8
Accepted
time: 5ms
memory: 4404kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 100 200 1 8 424 424 425 424 352 424 426 424 56 424 353 424 20407 424 19696 424 367
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1203 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #94:
score: 8
Accepted
time: 0ms
memory: 4068kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 100 200 149 98 572 572 680 572 20405 572 15955 572 11715 572 16539 572 4169 572 3896 572 8043 572 14374 572 13323 572 14156 572 10601 572 13050 572 15024 572 1794 572 18112 572 5411 572 13233 572 1455 572 213 572 18431 572 2378 572 15608 572 8966 572 5695 572 522...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1049 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #95:
score: 8
Accepted
time: 3ms
memory: 3904kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 100 200 298 7 721 721 20358 721 19663 721 19662 721 20361 721 537 721 534 721 720
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 306 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #96:
score: 8
Accepted
time: 9ms
memory: 4456kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 200 1 8 524 524 525 524 708 524 526 524 924 524 709 524 40499 524 39284 524 715
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1603 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #97:
score: 8
Accepted
time: 9ms
memory: 4760kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 200 100 100 623 623 524 623 20279 623 18515 623 8440 623 18429 623 3772 623 9802 623 10628 623 6334 623 9151 623 9859 623 20222 623 6956 623 17344 623 16974 623 10855 623 837 623 9062 623 14900 623 9237 623 10912 623 8497 623 4452 623 14559 623 4085 623 3683 ...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1900 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #98:
score: 8
Accepted
time: 6ms
memory: 4460kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 200 199 96 722 722 532 722 39010 722 8232 722 16314 722 1303 722 34657 722 16754 722 27170 722 863 722 11377 722 19210 722 4736 722 16395 722 11932 722 7298 722 21186 722 20006 722 28382 722 33538 722 13833 722 33164 722 14494 722 38570 722 1253 722 25673 722...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 2197 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #99:
score: 8
Accepted
time: 5ms
memory: 4384kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 200 299 98 822 822 19753 822 39149 822 33026 822 33939 822 34081 822 38890 822 38946 822 39817 822 33012 822 35333 822 25272 822 24618 822 31977 822 24363 822 35933 822 31790 822 31064 822 31377 822 21314 822 24530 822 29086 822 29541 822 19920 822 20788 822 ...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 901 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #100:
score: 8
Accepted
time: 4ms
memory: 4252kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 200 398 7 921 921 39150 921 40871 921 40870 921 39137 921 849 921 862 921 920
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 406 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Subtask #7:
score: 14
Accepted
Test #101:
score: 14
Accepted
time: 9ms
memory: 4484kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 200 1 100 524 24804 34853 20956 34628 18830 29184 28919 32573 11364 24911 2226 5624 3715 30838 2206 17143 21162 27531 20198 27242 5007 12724 27160 32586 3535 7307 17015 25466 626 13891 9132 26194 9198 33073 815 7328 6938 21395 9489 30995 10804 21530 14698 394...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1603 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #102:
score: 14
Accepted
time: 0ms
memory: 3932kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 19 1 2 0 1 1 2 2 3 1 2 0 2 1 2 1 3 2 2 0 1 3 8 2 2 2 3 3 10 0 2 6 7 1 1 12 0 3 9 11 13 0 2 4 5 2 2 0 2 3 16 2 2 1 3 3 18 1 1 15 0 3 17 19 20 1 2 14 21
result:
ok
Test #103:
score: 14
Accepted
time: 1ms
memory: 4020kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 1 64 254 2572 2573 1820 1821 2037 2006 1976 1949 3033 3030 2991 2960 513 994 1467 1436 289 286 1774 1747 266 267 269 750 1996 1969 396 369 668 641 848 821 105 74 2239 2236 503 472 3010 3011 265 262 1921 1918 926 927 2092 2065 537 1018 2751 2720 2537 2534 1...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 523 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83...
result:
ok
Test #104:
score: 14
Accepted
time: 2ms
memory: 3856kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 1 64 303 3956 3955 2873 2994 4171 4292 1161 1794 3633 3722 5975 5974 4529 4528 4900 5053 3455 3576 164 163 6091 6090 2758 2757 2716 2715 4129 4128 2352 2319 4355 4508 4666 4665 294 447 4882 5099 2882 2881 1356 1477 5098 4707 1180 1813 3029 3028 1465 1464 4...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 719 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #105:
score: 14
Accepted
time: 0ms
memory: 4004kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 403 1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...
result:
ok
Test #106:
score: 14
Accepted
time: 0ms
memory: 3884kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 199 1 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 403 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 1 9 1 1 10 1 1 11 1 1 12 1 1 13 1 1 14 1 1 15 1 1 16 1 1 17 1 1 18 1 1 19 1 1 20 1 1 21 1 1 22 1 1 23 1 1 24 1 1 25 1 1 26 1 1 27 1 1 28 1 1 29 1 1 30 1 1 31 1 1 32 1 1 33 1 1 34 1 1 35 1 1 36 1 1 37 ...
result:
ok
Test #107:
score: 14
Accepted
time: 2ms
memory: 4104kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 100 1 64 424 2307 2215 15256 15257 9795 10727 11018 11019 12186 12094 10597 10393 17418 18350 4816 4724 11245 11246 15542 15402 9463 9416 7112 7020 10385 10386 4870 4794 635 636 19749 19750 12766 12658 14657 14658 8155 8063 10491 10271 5560 5596 10188 10080 1...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1203 1 100 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #108:
score: 14
Accepted
time: 5ms
memory: 4404kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 100 200 1 64 424 2490 2418 12659 12660 16591 17287 15701 15469 2849 2809 10684 10685 9480 9481 13053 13749 677 678 18111 18039 8956 9652 3900 3828 14377 14378 11098 11099 6860 6861 11973 12701 12617 12618 9064 9065 1847 1800 6224 6225 6537 6538 17559 17640 13843 ...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1203 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #109:
score: 14
Accepted
time: 9ms
memory: 4736kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 200 1 64 524 29787 29780 29798 30014 5970 5162 1369 1370 33920 33921 21146 21330 27015 27008 24216 24217 10595 11835 38759 38752 21185 21186 22973 24181 2666 2850 14275 14300 5796 6012 21309 21310 34071 34287 19439 19432 17864 19072 28242 28243 4521 5729 1337...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 1603 1 200 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Subtask #8:
score: 0
Skipped
Dependency #1:
0%