QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#43798 | #4562. Prisoner Challenge | fecto_elfilis | 100 ✓ | 18ms | 4348kb | C++ | 1.7kb | 2022-08-11 08:45:52 | 2022-08-11 08:45:54 |
Judging History
answer
#include "prison.h"
#include <bits/stdc++.h>
using namespace std;
const int N=5010,M=30;
int dp[N],pre[N],mk[M];
vector< pair<int,int> > v[M],w[M];
vector< vector<int> > devise_strategy (int n) {
vector< vector<int> > ans;
dp[1]=dp[2]=0;
for (int i=3;i<=n;i++) {
dp[i]=1e9;
for (int j=1;j<=20;j++) {
if (dp[(i+j-3)/j]+j<=dp[i]) {pre[i]=j,dp[i]=dp[(i+j-3)/j]+j;}
}
}
v[0].push_back(make_pair(1,n));
w[0].push_back(make_pair(1,n));
int cur=0,tot=0,fk=0;
for (int i=0;i<=tot;i++) {
if (i==0||(mk[i]^mk[i-1])) {
cur=tot;
int le=0;
for (int k=i;k<=tot;k++) {
int len=v[k].size();
for (int j=0;j<len;j++) {le=max(le,v[i][j].second-v[i][j].first+1);}
}
if (pre[le]) {
fk=(le+pre[le]-3)/pre[le];
while (tot<cur+(le+fk-3)/fk) {tot++;mk[tot]=(mk[i]^1);}
} else {fk=0;}
}
vector <int> tmp(n+1);
tmp[0]=mk[i];
int len=v[i].size();
for (int j=0;j<len;j++) {
//printf("%d %d %d %d\n",i,j,v[i][j].first,v[i][j].second);
int nle=v[i][j].second-v[i][j].first+1;
if (fk) {
for (int k=1;k<=(nle+fk-3)/fk;k++) {
v[cur+k].push_back(make_pair(v[i][j].first+1+(k-1)*fk,v[i][j].first+min(nle-2,k*fk)));
w[cur+k].push_back(v[i][j]);
}
}
for (int k=1;k<=n;k++) {
if (k>=w[i][j].first&&k<=w[i][j].second) {
if (k<=v[i][j].first) {tmp[k]=(mk[i]?-2:-1);}
else if (k>=v[i][j].second) {tmp[k]=(mk[i]?-1:-2);}
else {tmp[k]=cur+(k-v[i][j].first-1)/fk+1;}
}
}
}
ans.push_back(tmp);
}
//printf("%d %d\n",tot,dp[n]);
//for (int i=0;i<=tot;i++) {printf("%d",mk[i]);
//for (int j=0;j<=n;j++) {
// printf("%-5d ",ans[i][j]);
//}
//printf("\n");
//}
return ans;
}
詳細信息
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 0ms
memory: 3756kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 0 0 -1 -2
result:
ok
Test #2:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 1 0 -1 1 -2 1 -2 -2 -1
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 243 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 12 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 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 ...
result:
ok
Test #4:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 256 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 12 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 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok
Test #5:
score: 0
Accepted
time: 3ms
memory: 3728kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 499 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 14 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: 3ms
memory: 3848kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 500 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 14 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: 2ms
memory: 3692kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 29 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 6 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 4 5 5 5 -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 4 5 5 5 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 -2 -2 -2 -2 -2 -2 -2 -2 -2...
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 380 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 13 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 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 #9:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 411 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 13 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: 1ms
memory: 3692kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 0 0 -1 -2
result:
ok
Test #11:
score: 0
Accepted
time: 2ms
memory: 3856kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 1 0 -1 1 -2 1 -2 -2 -1
result:
ok
Test #12:
score: 0
Accepted
time: 2ms
memory: 3876kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 243 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 12 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 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 ...
result:
ok
Test #13:
score: 0
Accepted
time: 2ms
memory: 3876kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 256 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 12 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 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok
Test #14:
score: 0
Accepted
time: 3ms
memory: 3864kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 499 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 14 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: 1ms
memory: 3728kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 500 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 14 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: 3684kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 12 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 4 0 -1 1 1 1 1 2 2 2 2 3 3 -2 1 -2 -2 4 4 -1 -1 -1 -1 -1 -1 -1 -1 1 -2 -2 -2 -2 -2 -2 4 4 -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
result:
ok
Test #17:
score: 0
Accepted
time: 2ms
memory: 3820kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 138 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 10 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: 3ms
memory: 3728kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 469 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 14 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 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
Subtask #3:
score: 90
Accepted
Test #19:
score: 90
Accepted
time: 1ms
memory: 3880kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 0 0 -1 -2
result:
ok
Test #20:
score: 90
Accepted
time: 0ms
memory: 3764kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 1 0 -1 1 -2 1 -2 -2 -1
result:
ok
Test #21:
score: 90
Accepted
time: 6ms
memory: 3912kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2187 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 18 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: 14ms
memory: 4272kb
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: 18ms
memory: 4336kb
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: 14ms
memory: 4348kb
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: 3808kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 22 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 5 0 -1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 -2 1 -2 -2 3 3 3 3 4 4 4 4 -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 3 3 3 3 4 4 4 4 -1 -1 0 0 -1 -1 5 5 -2 -2 -2 -2 -2 -2 -1 -1 5 5 -2 -2 -2 -2 -2 -2 0 0 0 -1 -1 -1 -1 -1 -1 5 ...
result:
ok
Test #26:
score: 90
Accepted
time: 3ms
memory: 3880kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 376 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 13 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 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 #27:
score: 90
Accepted
time: 3ms
memory: 3808kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 662 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 15 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: 3ms
memory: 4016kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2010 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 18 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: 9ms
memory: 4248kb
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: 3692kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 0
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 1 0 -1 1 -2 1 -2 -2 -1
result:
ok