QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#133192 | #2674. Vision program | bashkort# | 26 | 5ms | 4764kb | C++20 | 2.1kb | 2023-08-01 17:18:43 | 2024-07-04 01:07:31 |
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) {
ax.push_back(add_and({R[i], R[i + x]}));
}
for (int j = 0; j < W; ++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);
}
詳細信息
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 10
Accepted
time: 0ms
memory: 3800kb
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: 0
Accepted
time: 0ms
memory: 3776kb
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: 0
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: 0
Accepted
time: 0ms
memory: 4064kb
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: 0
Accepted
time: 0ms
memory: 3776kb
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
Wrong Answer
time: 0ms
memory: 3776kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b WA Invalid index
result:
wrong answer WA in grader: Invalid index
Subtask #2:
score: 0
Wrong Answer
Test #19:
score: 11
Accepted
time: 0ms
memory: 3860kb
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: 0
Accepted
time: 0ms
memory: 4060kb
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: -11
Wrong Answer
time: 0ms
memory: 3740kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 10 5 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b WA Invalid index
result:
wrong answer WA in grader: Invalid index
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: 0ms
memory: 3836kb
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: 0
Accepted
time: 0ms
memory: 4088kb
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: 0
Accepted
time: 0ms
memory: 3800kb
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: 0
Accepted
time: 0ms
memory: 3892kb
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: 0
Accepted
time: 0ms
memory: 3832kb
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: 0
Accepted
time: 0ms
memory: 3824kb
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: 0
Accepted
time: 0ms
memory: 4088kb
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: 0
Accepted
time: 0ms
memory: 3812kb
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: 0
Accepted
time: 0ms
memory: 4064kb
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: 0
Accepted
time: 0ms
memory: 3828kb
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: 0
Accepted
time: 0ms
memory: 3832kb
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: 0
Accepted
time: 0ms
memory: 3828kb
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: 0
Accepted
time: 0ms
memory: 3808kb
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: 0
Accepted
time: 0ms
memory: 3824kb
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: 0
Accepted
time: 0ms
memory: 3764kb
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: 0
Accepted
time: 0ms
memory: 3840kb
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: 0
Accepted
time: 0ms
memory: 3828kb
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: 0
Accepted
time: 0ms
memory: 3800kb
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: 0
Accepted
time: 0ms
memory: 4088kb
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: 0
Accepted
time: 0ms
memory: 4088kb
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: 0
Accepted
time: 0ms
memory: 3868kb
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: 0
Accepted
time: 0ms
memory: 3804kb
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: 0
Wrong Answer
Test #70:
score: 8
Accepted
time: 0ms
memory: 3732kb
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
Wrong Answer
time: 0ms
memory: 3776kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 2 3 129 129 128 129 131 129 130
output:
b17553fd-ba5a-4140-836c-491f938c515b WA Invalid index
result:
wrong answer WA in grader: Invalid index
Subtask #7:
score: 14
Accepted
Test #101:
score: 14
Accepted
time: 4ms
memory: 4764kb
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: 0
Accepted
time: 0ms
memory: 4068kb
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: 0
Accepted
time: 1ms
memory: 3888kb
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: 0
Accepted
time: 2ms
memory: 4200kb
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: 0
Accepted
time: 0ms
memory: 3836kb
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: 0
Accepted
time: 0ms
memory: 3764kb
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: 0
Accepted
time: 2ms
memory: 4244kb
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: 0
Accepted
time: 5ms
memory: 4192kb
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: 0
Accepted
time: 4ms
memory: 4548kb
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%