QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#50886 | #4562. Prisoner Challenge | iee | 100 ✓ | 10ms | 3980kb | C++17 | 722b | 2022-09-29 15:44:39 | 2022-09-29 15:44:40 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
void dfs(int l, int r, int L, int R, bool d, int id, int im, auto &a) {
if (l > r) return;
l++, r--;
a[id][0] = d;
for (int i = L; i <= R; ++i)
if (i < l) a[id][i] = (d ? -2 : -1);
else if (i > r) a[id][i] = (d ? -1 : -2);
int s = r - l + 1, num = min(s, 2 + (s > 4)), len = ceil(1.0 * s / num);
for (int x = l, y, i = 1; i <= num; x = y + 1, ++i) {
y = min(r, x + len - 1);
for (int j = x; j <= y; ++j)
a[id][j] = im + i;
dfs(x, y, l - 1, r + 1, !d, im + i, im + num, a);
}
}
vector<vector<int>> devise_strategy(int n) {
vector<vector<int>> a(21, vector<int>(n + 1));
dfs(1, n, 1, n, 0, 0, 0, a);
return a;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 2ms
memory: 3740kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 -2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
result:
ok
Test #2:
score: 0
Accepted
time: 2ms
memory: 3732kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 1 -2 1 -2 -2 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
result:
ok
Test #3:
score: 0
Accepted
time: 2ms
memory: 3816kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 243 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok
Test #4:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 256 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok
Test #5:
score: 0
Accepted
time: 3ms
memory: 3832kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 499 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 0ms
memory: 3860kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 500 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 3ms
memory: 3812kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 29 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 -2 1 -2 -2 4 4 4 5 5 5 6 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 4 4 4 5 5 5 6 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 -2 -2 -2 -2 -2 -2 -2 -2 -...
result:
ok
Test #8:
score: 0
Accepted
time: 3ms
memory: 3828kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 380 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 3ms
memory: 3836kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 411 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 2ms
memory: 3672kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 -2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
result:
ok
Test #11:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 1 -2 1 -2 -2 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
result:
ok
Test #12:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 243 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok
Test #13:
score: 0
Accepted
time: 3ms
memory: 3864kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 256 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok
Test #14:
score: 0
Accepted
time: 2ms
memory: 3868kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 499 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 3ms
memory: 3728kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 500 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 2ms
memory: 3740kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 12 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 1 1 1 1 2 2 2 2 3 3 -2 1 -2 -2 4 5 -1 -1 -1 -1 -1 -1 -1 -1 1 -2 -2 -2 -2 -2 -2 4 5 -1 -1 -1 -1 1 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -1 -1 0 0 -1 -1 -2 -2 -1 -1 -2 -2 0 0 0 0 0 -1 -1 -1 -2 -1 -1 -1 -2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
result:
ok
Test #17:
score: 0
Accepted
time: 2ms
memory: 3824kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 138 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok
Test #18:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 469 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 3ms
memory: 3720kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 -2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
result:
ok
Test #20:
score: 90
Accepted
time: 2ms
memory: 3812kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 1 -2 1 -2 -2 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
result:
ok
Test #21:
score: 90
Accepted
time: 6ms
memory: 3876kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2187 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 10ms
memory: 3952kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 4096 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 5ms
memory: 3964kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 4999 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 3816kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 5000 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 3676kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 22 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 3 3 3 3 3 3 -2 1 -2 -2 4 4 5 5 6 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 -2 -2 -2 -2 -2 -2 -2 -2 -2 4 4 5 5 6 -1 -1 -1 -1 -1 -1 -1 -1 1 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 4 4 5 5 -1 -1 0 0 -1 -1 -2 -2...
result:
ok
Test #26:
score: 90
Accepted
time: 2ms
memory: 3760kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 376 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 3ms
memory: 3880kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 662 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 6ms
memory: 3872kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2010 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 10ms
memory: 3980kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 4030 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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: 2ms
memory: 3844kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 0
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 20 0 -1 1 -2 1 -2 -2 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
result:
ok