QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#144446 | #4562. Prisoner Challenge | bashkort | 100 ✓ | 8ms | 3884kb | C++17 | 1.8kb | 2023-08-21 16:39:02 | 2023-08-21 16:39:05 |
Judging History
answer
#include "prison.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
std::vector<std::vector<int>> devise_strategy(int N) {
vector<int> s{1666, 555, 185, 61, 20, 9, 4, 2};
vector<int> cut{3, 3, 3, 3, 3, 2, 2, 1};
const int m = 20;
vector a(m + 1, vector<int>(N + 1));
for (int i = 0; i <= m; ++i) {
int l = 0, b = i;
while (b > 0) {
b -= cut[l++];
}
a[i][0] = l % 2 == 0;
int me = a[i][0] == 0 ? -1 : -2;
int oth = -1 + -2 - me;
for (int x = 1; x <= N; ++x) {
int y = x - 1, last = -1;
for (int j = 0; j < l; ++j) {
if (y == 0 || y == s[j] * cut[j] + 1) {
y = y == 0 ? -1 : -2;
break;
} else {
last = (y - 1) / s[j];
y = (y - 1) % s[j];
}
}
if (y < 0) {
a[i][x] = y == -1 ? me : oth;
continue;
}
if (l > 0) {
int other = b + cut[l - 1] - 1;
if (last != other) {
if (last < other) {
a[i][x] = me;
} else {
a[i][x] = oth;
}
continue;
}
}
if (y == 0) {
a[i][x] = me;
} else if (l == size(cut) || y == s[l] * cut[l] + 1) {
a[i][x] = oth;
} else {
y -= 1;
a[i][x] = accumulate(cut.begin(), cut.begin() + l, 0) + 1 + (y / s[l]);
}
}
}
for (auto &x : a) {
for (auto &y : x) {
y = min(y, m);
}
}
return a;
}
詳細信息
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms
memory: 3704kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 0 -1 -1 0 -1 -1 0 -1 -1 1 -2 -2 1 -2 -2 1 -2 -2 0 -1 -1 0 -1 -1 0 -1 -1 1 -2 -2 1 -2 -2 1 -2 -2 0 -1 -1 0 -1 -1 0 -1 -1 1 -2 -2 1 -2 -2 0 -1 -1 0 -1 -1 1 -2 -2
result:
ok
Test #2:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 0 -1 -1 4 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 243 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #4:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 256 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #5:
score: 0
Accepted
time: 2ms
memory: 3740kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 499 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #6:
score: 0
Accepted
time: 2ms
memory: 3740kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 500 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #7:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 29 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 -1 -1 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 380 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #9:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 411 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Subtask #2:
score: 5
Accepted
Test #10:
score: 5
Accepted
time: 1ms
memory: 3700kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 0 -1 -1 0 -1 -1 0 -1 -1 1 -2 -2 1 -2 -2 1 -2 -2 0 -1 -1 0 -1 -1 0 -1 -1 1 -2 -2 1 -2 -2 1 -2 -2 0 -1 -1 0 -1 -1 0 -1 -1 1 -2 -2 1 -2 -2 0 -1 -1 0 -1 -1 1 -2 -2
result:
ok
Test #11:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 0 -1 -1 4 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2
result:
ok
Test #12:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 243 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #13:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 256 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #14:
score: 0
Accepted
time: 2ms
memory: 3732kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 499 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #15:
score: 0
Accepted
time: 2ms
memory: 3868kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 500 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #16:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 12 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 0 -1 -1 4 4 4 4 4 4 4 4 4 4 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 -2 -2 -2 7 7 7 7 7 7 7 7 7 1 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 1 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 0 -1 -1 -1 -1 10 ...
result:
ok
Test #17:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 138 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #18:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 469 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Subtask #3:
score: 90
Accepted
Test #19:
score: 90
Accepted
time: 1ms
memory: 3700kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 0 -1 -1 0 -1 -1 0 -1 -1 1 -2 -2 1 -2 -2 1 -2 -2 0 -1 -1 0 -1 -1 0 -1 -1 1 -2 -2 1 -2 -2 1 -2 -2 0 -1 -1 0 -1 -1 0 -1 -1 1 -2 -2 1 -2 -2 0 -1 -1 0 -1 -1 1 -2 -2
result:
ok
Test #20:
score: 90
Accepted
time: 1ms
memory: 3720kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 0 -1 -1 4 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2
result:
ok
Test #21:
score: 90
Accepted
time: 1ms
memory: 3884kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2187 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #22:
score: 90
Accepted
time: 7ms
memory: 3840kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 4096 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #23:
score: 90
Accepted
time: 8ms
memory: 3792kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 4999 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #24:
score: 90
Accepted
time: 8ms
memory: 3860kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 5000 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #25:
score: 90
Accepted
time: 1ms
memory: 3644kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 22 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 -1 -1 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 -2 -2 -2 7 7 7 7 7 7...
result:
ok
Test #26:
score: 90
Accepted
time: 1ms
memory: 3728kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 376 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #27:
score: 90
Accepted
time: 2ms
memory: 3880kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 662 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #28:
score: 90
Accepted
time: 4ms
memory: 3832kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2010 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #29:
score: 90
Accepted
time: 6ms
memory: 3840kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 4030 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok
Test #30:
score: 90
Accepted
time: 1ms
memory: 3688kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 0
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 1 -2 1 1 0 -1 -1 4 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2 1 -2 -2 -2 0 -1 -1 -1 0 -1 -1 -1 1 -2 -2 -2
result:
ok