QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#43811 | #4562. Prisoner Challenge | Remocuz | 100 ✓ | 12ms | 4676kb | C++20 | 1.9kb | 2022-08-11 10:04:24 | 2022-08-11 10:04:28 |
Judging History
answer
#include "prison.h"
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
void print(vector<int> x){for(int i=0;i<(int)x.size();i++) fprintf(stderr,"%d%c",x[i]," \n"[i==(int)x.size()-1]);}
int n,B[20]={4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4},cnt;
vector<vector<int>> ans;
vector<vector<int>> ch;
void workA(int id,int l,int r,int bl,int br,int dep);
void workB(int id,int l,int r,int al,int ar,int dep);
void workA(int id,int l,int r,int bl,int br,int dep)
{
int B=::B[dep];
if((int)ans.size()<=id) ans.pb(vector<int>(n+1));
if((int)ch.size()<=dep) ch.pb(vector<int>(B));
ans[id][0]=0;
for(int i=l;i<=bl;i++) ans[id][i]=-1;
for(int i=br;i<=r;i++) ans[id][i]=-2;
l=bl+1,r=br-1;
if(l>r) return ;
// int mid=(l+r)/2;
// int m1=(2*l+r)/3,m2=(l+2*r)/3;
vector<int> mid(B+1);
for(int i=0;i<=B;i++) mid[i]=(l*(B-i)+r*i)/B;
mid[0]--;
for(int i=0;i<B;i++)
{
if(mid[i]<mid[i+1])
{
if(!ch[dep][i]) ch[dep][i]=++cnt;
for(int j=mid[i]+1;j<=mid[i+1];j++) ans[id][j]=ch[dep][i];
workB(ch[dep][i],bl,br,mid[i]+1,mid[i+1],dep+1);
}
}
}
void workB(int id,int l,int r,int al,int ar,int dep)
{
int B=::B[dep];
if((int)ans.size()<=id) ans.pb(vector<int>(n+1));
if((int)ch.size()<=dep) ch.pb(vector<int>(B));
ans[id][0]=1;
for(int i=l;i<=al;i++) ans[id][i]=-2;
for(int i=ar;i<=r;i++) ans[id][i]=-1;
l=al+1,r=ar-1;
if(l>r) return ;
vector<int> mid(B+1);
for(int i=0;i<=B;i++) mid[i]=(l*(B-i)+r*i)/B;
mid[0]--;
for(int i=0;i<B;i++)
{
if(mid[i]<mid[i+1])
{
if(!ch[dep][i]) ch[dep][i]=++cnt;
for(int j=mid[i]+1;j<=mid[i+1];j++) ans[id][j]=ch[dep][i];
workA(ch[dep][i],al,ar,mid[i]+1,mid[i+1],dep+1);
}
}
}
vector<vector<int>> devise_strategy(int N)
{
for(int i=0;i<20;i++) B[i]=3;
for(int i=6;i<20;i++) B[i]=2;
n=N;
workA(0,1,n,1,n,0);
for(int i=0;i<(int)ch.size();i++) print(ch[i]);
return ans;
}
詳細信息
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms
memory: 3736kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 0 0 -1 -2
result:
ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 1 0 -1 1 -2 1 -2 -1 -1
result:
ok
Test #3:
score: 0
Accepted
time: 3ms
memory: 3728kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 243 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 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12...
result:
ok
Test #4:
score: 0
Accepted
time: 2ms
memory: 3880kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 256 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 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 ...
result:
ok
Test #5:
score: 0
Accepted
time: 3ms
memory: 3768kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 499 1
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 #6:
score: 0
Accepted
time: 2ms
memory: 3800kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 500 1
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 #7:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 29 1
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 7 0 -1 1 1 1 1 1 1 1 1 1 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 -2 1 -2 -2 2 2 2 4 4 5 5 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 3 -2 -2 -2 -2 -2 -2 -1 -1 3 -2 -2 -2 -2 -2 -2 -1 -1 3 -2 -2 -2 -2 -2 -2 0 1 0 0 -2 -1 -1 0 0 0 0 0 0...
result:
ok
Test #8:
score: 0
Accepted
time: 2ms
memory: 3740kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 380 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 #9:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 411 1
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
Subtask #2:
score: 5
Accepted
Test #10:
score: 5
Accepted
time: 3ms
memory: 3824kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 0 0 -1 -2
result:
ok
Test #11:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 1 0 -1 1 -2 1 -2 -1 -1
result:
ok
Test #12:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 243 2
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 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12...
result:
ok
Test #13:
score: 0
Accepted
time: 2ms
memory: 3844kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 256 2
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 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 ...
result:
ok
Test #14:
score: 0
Accepted
time: 3ms
memory: 3904kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 499 2
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 #15:
score: 0
Accepted
time: 3ms
memory: 3928kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 500 2
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 #16:
score: 0
Accepted
time: 2ms
memory: 3740kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 12 2
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 5 0 -1 1 1 1 1 4 4 4 5 5 5 -2 1 -2 -2 2 3 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -2 -2 -2 -1 -2 -2 -1 -2 -2 0 0 0 -1 -1 -2 -2 0 0 0 0 0 0 0 1 -2 -2 -2 -2 -2 -2 2 -1 -1 -1 -1 -1 1 -2 -2 -2 -2 -2 -2 -2 -2 -2 2 -1 -1
result:
ok
Test #17:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 138 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 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 12 12 12 12 12 12 ...
result:
ok
Test #18:
score: 0
Accepted
time: 3ms
memory: 3876kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 469 2
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
Subtask #3:
score: 90
Accepted
Test #19:
score: 90
Accepted
time: 0ms
memory: 3824kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 0 0 -1 -2
result:
ok
Test #20:
score: 90
Accepted
time: 0ms
memory: 3836kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 1 0 -1 1 -2 1 -2 -1 -1
result:
ok
Test #21:
score: 90
Accepted
time: 6ms
memory: 4160kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 2187 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 19 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: 4528kb
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: 6ms
memory: 4640kb
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: 12ms
memory: 4676kb
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: 2ms
memory: 3696kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 22 3
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 6 0 -1 1 1 1 1 1 1 1 5 5 5 5 5 5 6 6 6 6 6 6 6 -2 1 -2 -2 2 2 3 4 4 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 -2 -2 -2 -2 -2 -1 -1 -2 -2 -2 -2 -1 -1 -2 -2 -2 -2 -2 0 0 0 -1 -1 -1 -2 -2 -2 -2 -1 -1 -1 -2 -2 -2 -1 -1 -1 -2 -2 -2 -2 0 0 0 -1 -1 -...
result:
ok
Test #26:
score: 90
Accepted
time: 3ms
memory: 3928kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 376 3
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 #27:
score: 90
Accepted
time: 3ms
memory: 3912kb
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: 4000kb
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: 10ms
memory: 4492kb
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: 3880kb
input:
9bbd7c649d0a9529ee32e00a6b96ee2f93e5b138 3 0
output:
d42f2a420c2a91c29a00736354e52427eecfabae OK 1 0 -1 1 -2 1 -2 -1 -1
result:
ok