QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#55226 | #3040. Container | tricyzhkx | AC ✓ | 9ms | 15524kb | C++14 | 4.4kb | 2022-10-12 19:35:03 | 2022-10-12 19:35:06 |
Judging History
answer
# include <bits/stdc++.h>
using namespace std;
int n,s,t,W,H,C,cnt,du[250010],bel[510][510],in[250010],out[250010],a[510][510],h[250010],dis[250010],cur[250010],head[250010],to[500010],edge[500010],flow[500010],cap[500010],nxt[500010],tot=1;
vector<int> G[250010];
char s1[510],s2[510];
bool vis[250010];
struct node
{
int v,w;
node(int _v=0,int _w=0):v(_v),w(_w){}
bool operator<(node a)const{return w>a.w;}
};
struct node2
{
int x,y,dir;// 0 : ·, 1 : | , 2 : —
node2(int _x=0,int _y=0,int _d=0):x(_x),y(_y),dir(_d){}
}b[250010];
int id(int i,int j){return (i-1)*H+j;}
void addedge(int u,int v,int w,int c)
{
to[++tot]=v;
edge[tot]=w;
cap[tot]=c;
nxt[tot]=head[u];
head[u]=tot;
}
void add(int u,int v,int w,int c){addedge(u,v,w,c);addedge(v,u,-w,0);}
void Flow(int i,int f){flow[i]+=f;flow[i^1]-=f;}
void spfa()
{
queue<int> que;
for(int i=1;i<=t;i++) h[i]=1e9,vis[i]=0;
h[s]=0;que.push(s);
while(!que.empty())
{
int u=que.front();que.pop();
vis[u]=0;
for(int i=head[u];i;i=nxt[i])
{
int v=to[i],w=edge[i];
if(cap[i]>flow[i] && h[v]>h[u]+w)
{
h[v]=h[u]+w;
if(!vis[v]) vis[v]=1,que.push(v);
}
}
}
}
bool Dij()
{
priority_queue<node> que;
for(int i=1;i<=t;i++) dis[i]=1e9,vis[i]=0;
dis[s]=0;que.emplace(s,0);
while(!que.empty())
{
node t=que.top();que.pop();
if(vis[t.v]) continue;
int u=t.v;vis[u]=1;
for(int i=head[u];i;i=nxt[i])
{
int v=to[i],w=edge[i]+h[u]-h[v];
if(cap[i]>flow[i] && dis[v]>dis[u]+w) dis[v]=dis[u]+w,que.emplace(v,dis[v]);
}
}
return h[t]+dis[t]<0;
}
int dfs(int u,int minn)
{
if(u==t || !minn) return minn;
vis[u]=1;
int f,ans=0;
for(int &i=cur[u];i;i=nxt[i])
{
int v=to[i],w=edge[i]+h[u]-h[v];
if(!vis[v] && cap[i]>flow[i] && dis[v]==dis[u]+w && (f=dfs(v,min(minn,cap[i]-flow[i])))>0)
{
flow[i]+=f;flow[i^1]-=f;
ans+=f;minn-=f;
}
if(!minn) break;
}
vis[u]=0;
return ans;
}
int main()
{
cin>>n>>C;
scanf("%s%s",s1+1,s2+1);
for(int i=1;i<=n;i++) (s1[i]=='1'?W:H)++;
int x=0,y=0;
for(int i=1;i<=n;i++)
if(s1[i]=='1') x++;
else
{
y++;
for(int i=x+1;i<=W;i++) a[i][y]++;
}
x=y=0;
for(int i=1;i<=n;i++)
if(s2[i]=='1') x++;
else
{
y++;
for(int i=x+1;i<=W;i++) a[i][y]--;
}
s=W*H+1;t=s+1;
for(int i=1;i<=W;i++)
for(int j=1;j<=H;j++)
if(a[i][j])
{
if((i+j)&1) add(s,id(i,j),0,1),in[id(i,j)]=tot-1;
else add(id(i,j),t,0,1),out[id(i,j)]=tot-1;
}
for(int i=1;i<=W;i++)
for(int j=1;j<=H;j++)
if(a[i][j] && (i+j)&1)
{
if(a[i-1][j]) add(id(i,j),id(i-1,j),-C-2,1);
if(a[i+1][j]) add(id(i,j),id(i+1,j),-C-2,1);
if(a[i][j-1]) add(id(i,j),id(i,j-1),-C-1,1);
if(a[i][j+1]) add(id(i,j),id(i,j+1),-C-1,1);
}
spfa();Dij();
for(int i=1;i<=W;i++)
for(int j=1;j<=H;j++)if((i+j)&1)
for(int u=id(i,j),k=head[u];k;k=nxt[k])
{
int v=to[k],w=edge[k];
if(cap[k]>flow[k] && !flow[out[v]] && w==-C-2)
{
Flow(k,1);Flow(in[u],1);Flow(out[v],1);
break;
}
}
for(int i=1;i<=t;i++)
if(dis[i]<1e9) h[i]+=dis[i];
while(Dij())
{
for(int i=1;i<=t;i++) cur[i]=head[i],vis[i]=0;
dfs(s,1e9);
for(int i=1;i<=t;i++)
if(dis[i]<1e9) h[i]+=dis[i];
}
for(int i=1;i<=W;i++)
for(int j=1;j<=H;j++)
if(a[i][j] && (i+j)&1)
{
int u=id(i,j),v=0;
for(int k=head[u];k;k=nxt[k])
if(to[k]<s && flow[k]==cap[k])
{
v=to[k];
break;
}
if(v)
{
int ti=(v-1)/H+1,tj=(v-1)%H+1,t=(ti==i?2:1);
b[++cnt]=node2(min(i,ti),min(j,tj),t);
bel[i][j]=bel[ti][tj]=cnt;
}
else b[++cnt]=node2(i,j,0),bel[i][j]=cnt;
}
for(int i=1;i<=W;i++)
for(int j=1;j<=H;j++)
if(a[i][j] && !((i+j)&1) && !bel[i][j])
b[++cnt]=node2(i,j,0),bel[i][j]=cnt;
auto add=[&](int u,int v)
{
if(!u || !v || u==v) return;
G[u].push_back(v);du[v]++;
};
auto print=[&](int i)
{
int x=b[i].x,y=b[i].y;
if(!b[i].dir) printf("%d %d\n",x+y-1,x+y);
else printf("%d %d\n",x+y-1,x+y+1);
};
for(int i=1;i<=W;i++)
for(int j=1;j<=H;j++)
if(a[i][j]>0) add(bel[i-1][j],bel[i][j]),add(bel[i][j+1],bel[i][j]);
else add(bel[i][j],bel[i-1][j]),add(bel[i][j],bel[i][j+1]);
queue<int> que;
for(int i=1;i<=cnt;i++)
if(!du[i]) que.push(i);
cout<<cnt<<endl;
while(!que.empty())
{
int u=que.front();que.pop();
print(u);
for(int v:G[u])
if(!(--du[v])) que.push(v);
}
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 7ms
memory: 12708kb
input:
5 2 11221 21112
output:
2 1 3 4 5
result:
ok good job!
Test #2:
score: 0
Accepted
time: 0ms
memory: 12672kb
input:
7 0 2212121 1212122
output:
4 6 7 4 6 2 4 1 2
result:
ok good job!
Test #3:
score: 0
Accepted
time: 0ms
memory: 12700kb
input:
7 2 2212121 1212122
output:
3 1 3 3 5 5 7
result:
ok good job!
Test #4:
score: 0
Accepted
time: 2ms
memory: 12508kb
input:
1 0 1 1
output:
0
result:
ok good job!
Test #5:
score: 0
Accepted
time: 2ms
memory: 12544kb
input:
1 100 2 2
output:
0
result:
ok good job!
Test #6:
score: 0
Accepted
time: 2ms
memory: 12636kb
input:
2 55 12 21
output:
1 1 2
result:
ok good job!
Test #7:
score: 0
Accepted
time: 3ms
memory: 12672kb
input:
3 100 112 211
output:
1 1 3
result:
ok good job!
Test #8:
score: 0
Accepted
time: 2ms
memory: 12580kb
input:
3 99 221 212
output:
1 2 3
result:
ok good job!
Test #9:
score: 0
Accepted
time: 0ms
memory: 12488kb
input:
3 98 111 111
output:
0
result:
ok good job!
Test #10:
score: 0
Accepted
time: 3ms
memory: 12876kb
input:
123 64 222111221111221122211121221221122122211222211112221221212121211221122212111212211222122212122221212121222121221112111112112 211112121222212221122212212122111121121212211211211212212211111221222212121121212222112212222211221211122212111211221122212
output:
110 8 10 12 14 15 17 24 26 30 32 34 36 42 44 61 63 65 67 72 74 79 81 83 85 110 112 114 116 3 4 37 38 57 58 97 98 99 100 7 9 16 18 22 24 26 28 31 33 41 42 44 46 59 61 64 66 70 72 78 80 81 83 109 111 4 6 55 57 95 97 9 11 17 19 20 22 24 26 27 29 32 34 58 60 63 65 69 71 76 78 80 81 107 109 111 113 2 4 6...
result:
ok good job!
Test #11:
score: 0
Accepted
time: 2ms
memory: 14128kb
input:
337 42 12221211121211122121211211221211122221122211222222112211121111121211112112222111112212222222211111212211212211221111112121121211112121211222222211122211121211121121121212111112212211122122121112212122212121112111222222112112221222122112221121212212221222212211112211222211112212121221221222111...
output:
683 6 8 14 16 22 24 25 27 33 35 38 40 44 45 50 52 54 56 58 59 69 71 72 74 82 84 93 95 98 99 102 103 104 105 109 111 112 114 118 119 122 124 129 131 136 138 146 148 152 154 158 160 161 163 175 177 183 185 193 195 204 205 207 209 212 214 219 221 222 224 234 236 239 241 251 253 261 263 266 268 274 276 ...
result:
ok good job!
Test #12:
score: 0
Accepted
time: 2ms
memory: 13840kb
input:
312 225 1211111122221112212122121121211212111222121212112121211221211122121111121212211221122221212122111111121222121222112121122222222111111211212112222111222221122211222221122112212112121122222121212111121211212222211122212122111221212222122222122211222211221211111221112111121122222122122111211212...
output:
254 8 10 14 16 20 22 25 27 30 32 36 38 47 49 54 56 59 61 63 65 66 68 78 80 81 83 93 95 100 102 109 111 113 115 116 117 119 121 135 137 140 142 147 149 154 156 159 161 169 171 175 177 180 181 198 199 201 203 204 206 211 213 216 217 223 225 228 229 239 241 244 246 254 256 258 260 271 273 278 280 288 2...
result:
ok good job!
Test #13:
score: 0
Accepted
time: 6ms
memory: 12556kb
input:
5 136 22111 21121
output:
1 2 4
result:
ok good job!
Test #14:
score: 0
Accepted
time: 8ms
memory: 14804kb
input:
401 518 2122122212112221121122221122212212111122222112211121112212211221211211111111111121222112122212122122112112222211212221212211221222212222211212211222221122212221121211112111221112211122121212112222122112122221112111112222121111122111221211212111211222112222112112211112122212111112211221111122...
output:
1263 10 12 18 20 24 26 34 36 43 45 47 49 51 53 59 61 65 67 68 70 82 84 100 102 110 112 122 124 137 139 143 145 150 152 159 161 164 166 169 171 174 176 179 181 190 192 199 201 207 209 211 213 222 224 228 230 236 238 250 252 256 258 259 261 263 265 274 276 281 283 285 287 297 299 300 302 312 314 317 3...
result:
ok good job!
Test #15:
score: 0
Accepted
time: 3ms
memory: 14040kb
input:
309 504 1122112211111111121121111122122122211211112122111211211212121221121122111212121112222121122211122111222122212112111112111221222111221212111111112112121211211222212212222122212112222222222211122111121112112122111211121222222211221121222111111211222121111221211111112111122111212111221212212211...
output:
769 3 5 16 18 19 21 26 27 29 31 32 34 36 38 41 43 48 50 54 56 67 69 81 83 89 91 95 97 99 101 121 123 130 132 143 145 146 148 153 155 157 159 165 167 174 175 177 179 191 193 196 198 200 202 204 205 206 208 210 212 214 216 217 219 223 225 228 230 235 237 242 244 257 259 264 265 268 270 273 275 279 281...
result:
ok good job!
Test #16:
score: 0
Accepted
time: 9ms
memory: 14860kb
input:
442 357 1121121122111122112211222222211112121111122111121122121121112212222222121121111111212122122121222222212122211111211112222221112112122222211122212122222221222211221212211122121221111222112222212122122212212221111121122212221122221111212112211212211222112211122212112211122222112222221221111112...
output:
782 2 3 14 16 18 20 22 24 32 34 40 42 46 48 49 51 55 57 59 61 73 75 81 83 86 88 89 91 111 113 116 118 125 127 128 130 131 133 139 141 146 148 160 162 165 167 169 171 180 182 185 187 192 193 201 203 211 213 214 216 223 225 228 230 232 233 236 238 240 242 246 248 252 254 256 258 263 265 269 271 276 27...
result:
ok good job!
Test #17:
score: 0
Accepted
time: 7ms
memory: 15400kb
input:
499 399 2122122112111122122122111112211112121112121112222111211122112222221221221111212221222211111221221211212211212222112221221212212211121212122122211212212222122122111212111212221121222112111122122111112122211212122221222222211221112212221122122112121212211121121222221121112112111112222211211122...
output:
1316 2 3 4 5 7 9 10 12 13 15 17 19 26 28 32 34 38 40 45 47 51 53 56 58 59 61 75 77 82 84 91 93 99 101 102 104 105 107 108 110 113 115 118 120 123 125 130 132 137 139 147 149 150 152 158 160 162 164 171 173 175 177 187 189 191 193 200 202 204 206 214 216 223 225 227 229 236 238 242 244 249 251 253 25...
result:
ok good job!
Test #18:
score: 0
Accepted
time: 2ms
memory: 12772kb
input:
36 857 212211211121121112122222121222222222 221221122222212222121112211112221221
output:
56 2 3 5 7 12 14 16 18 27 29 10 12 14 16 18 20 25 27 8 10 12 14 16 18 20 22 9 11 14 16 18 20 10 12 16 18 19 21 12 14 17 19 21 23 11 12 14 16 19 21 22 24 12 14 15 17 20 22 23 25 13 15 17 19 21 23 24 26 15 17 18 20 22 24 26 28 16 18 19 21 24 26 28 30 17 19 20 22 26 28 29 31 18 20 22 24 27 29 30 32 20 ...
result:
ok good job!
Test #19:
score: 0
Accepted
time: 5ms
memory: 14656kb
input:
371 54 11122122211122221221111111111112122222112111211111121111111221121212211122121211211112111111121121112122222211121222222211211222211222221222221122211221211211221112222112221121111222122211211211212121112121212111221222221111122222112121112212111121211112222211222222222122212221221221212121212...
output:
1462 3 5 6 7 11 13 19 21 30 32 39 41 43 45 50 52 59 61 62 64 72 74 79 81 95 97 99 101 113 115 121 123 125 127 131 133 137 139 143 145 149 151 157 159 163 165 169 171 173 175 179 181 183 185 187 189 193 195 201 203 204 205 212 214 224 226 231 233 238 240 245 247 252 254 259 261 270 271 281 283 288 28...
result:
ok good job!
Test #20:
score: 0
Accepted
time: 2ms
memory: 13456kb
input:
209 349 22122112221111121222122221222211222112221112121122122112221222121121212211211111111212111122222211121221221121211111221212111111112221222222212211222222212212221111212112221222211122212121112122222222211222122 1222112122222212222221222212211212221222121222112122211121111211122222212111221122...
output:
598 1 3 5 7 9 11 14 16 17 19 21 23 31 33 36 38 42 44 47 49 54 56 65 67 70 72 73 75 82 84 89 91 101 103 107 109 115 117 129 131 145 147 163 165 168 170 180 181 190 191 192 193 202 204 207 209 8 9 12 14 15 17 23 25 32 34 38 40 44 46 48 50 56 58 63 65 68 70 80 82 84 86 87 89 91 93 99 101 103 105 109 11...
result:
ok good job!
Test #21:
score: 0
Accepted
time: 0ms
memory: 13144kb
input:
157 626 1221122121222222211112121122211122212112122222221211221111212112222221221111121212222212112221222121221111222122121112111121111211121221112212221112212122212 22122221221221211212212212111122112122121211212211222112122211121222222212122212121121221211211221212121122211122111112221221111212121...
output:
91 1 3 4 6 10 12 20 22 25 27 31 33 38 40 50 52 54 56 60 61 68 70 76 78 81 83 89 91 102 104 111 113 114 116 118 120 126 128 130 132 137 139 143 145 146 148 152 153 17 18 141 142 5 7 8 10 12 14 23 25 27 29 32 34 40 42 48 50 52 54 56 58 66 68 74 76 78 80 87 89 90 92 101 103 104 106 109 111 113 115 116 ...
result:
ok good job!
Test #22:
score: 0
Accepted
time: 3ms
memory: 15052kb
input:
447 512 1211212211222111221122222111212112111212111121221111122121122111111112121222222211222212111211122121111222221112111211112211121221122122121222221212211222112122221211121211222212112221121221211111111221222111211121121122112211122211212112211121121222121111212112112111111122222122121111211111...
output:
814 3 5 18 20 25 27 31 33 40 42 44 45 47 49 52 54 60 62 68 70 73 75 81 83 90 92 94 96 102 104 114 116 119 121 138 139 149 151 154 156 164 166 170 172 178 180 183 185 191 193 200 202 204 206 209 211 216 218 220 222 224 226 230 232 235 237 239 241 243 245 252 254 259 261 262 264 265 267 282 284 287 28...
result:
ok good job!
Test #23:
score: 0
Accepted
time: 2ms
memory: 13956kb
input:
304 553 2222111221212211222222221121121212121212111121212111212212211121121111121222221222211112111111211122212111112111221121211222221222112211212121222212112221111111212121122221222222211121121121221122121212212211212212122121122121121122111211212211221222221211221221211112212222212111111211211111...
output:
609 4 6 13 15 24 26 27 29 40 42 59 61 63 65 66 68 83 85 88 90 94 95 98 99 102 103 107 109 112 113 115 117 120 122 130 132 134 136 148 150 153 155 165 167 179 181 183 185 186 188 192 194 206 208 219 221 225 227 228 230 232 234 236 238 241 243 244 245 246 247 254 256 263 265 277 279 284 286 287 289 29...
result:
ok good job!
Test #24:
score: 0
Accepted
time: 1ms
memory: 14020kb
input:
300 283 1222222212221212221112211121121112112111122122211121112212221222121112211111111112221121111211112122112222211122222221121221112211212112121122122122212221221212122111211221222211122212222122212111122121111221221222122122222111122121111111211222122221221211211111122221212112221211212222211211...
output:
803 7 9 18 20 23 25 28 30 35 37 41 43 53 55 69 71 81 83 85 87 95 97 101 103 110 111 118 120 121 123 125 127 129 131 134 136 140 142 146 148 150 152 154 156 161 163 165 167 169 171 178 180 183 185 192 193 197 199 204 206 211 213 218 220 226 228 237 239 240 242 255 257 263 265 272 274 279 281 288 290 ...
result:
ok good job!
Test #25:
score: 0
Accepted
time: 6ms
memory: 14372kb
input:
387 146 2211222121111211111222212111121112121122122212112212122212111222212111121211222222111121221221221121112221111122112122211212211222122211122221122211112111211211222211112212222122211122121222212221112122112211122112211112122211122222111221221121122212211221211111211211212211221122212112212212...
output:
450 2 4 9 11 14 16 25 27 30 32 36 38 39 41 46 48 55 57 58 59 74 75 82 84 96 98 99 101 105 107 110 112 113 115 116 118 120 122 125 127 133 135 141 143 146 148 151 153 158 159 160 161 164 165 179 181 195 197 202 204 206 208 210 212 218 220 227 229 231 233 240 242 243 245 251 253 257 259 266 268 272 27...
result:
ok good job!
Test #26:
score: 0
Accepted
time: 2ms
memory: 12876kb
input:
66 369 112112222112111112212111221111122112211221221212111112221112221212 222211122211221212221121111111111212121211122111221221212212121111
output:
74 1 3 4 6 10 12 16 18 20 21 24 25 31 33 35 37 38 40 42 43 48 49 52 54 58 60 45 46 2 4 5 7 14 16 17 19 22 24 29 31 33 35 40 41 50 52 54 56 59 61 3 5 6 8 12 14 15 17 18 20 24 26 27 29 30 32 34 36 52 54 56 58 60 62 4 6 8 10 13 15 16 18 20 22 25 27 28 30 31 33 36 38 53 55 57 59 62 64 10 12 14 16 18 20 ...
result:
ok good job!
Test #27:
score: 0
Accepted
time: 2ms
memory: 12864kb
input:
79 896 1212112112112222111112121112111222211112122112221212221111121111111222121211221 1211212212212221111111221121122111111121121121221212111212222211212212111111221
output:
55 4 5 8 10 12 14 20 22 26 28 30 32 35 37 43 45 54 56 60 61 66 68 23 24 10 12 18 20 28 30 32 34 37 39 42 44 53 55 56 58 64 66 67 69 24 26 11 13 27 28 30 32 40 42 52 54 55 57 58 60 62 64 65 67 68 70 13 15 31 33 50 52 54 56 57 59 67 68 70 72 14 16 48 50 52 54 56 58 68 70 72 74 16 18 46 48 50 52 54 56 ...
result:
ok good job!
Test #28:
score: 0
Accepted
time: 2ms
memory: 13464kb
input:
231 339 112211112111122222122122111122221111222221221111111121222122112211111221121122121121211221121212221221122111221221212222211221122221122222121111122211121121112111212112211211221211111221211222212122212112122112111211212112111122112 111112211221211112112221211122111222222211222122122112111221...
output:
244 4 6 12 14 24 26 32 34 43 45 52 53 54 55 58 60 61 63 69 71 72 74 75 77 86 88 90 92 107 109 111 113 116 117 121 123 125 127 131 133 140 142 148 150 152 154 155 157 167 169 173 175 183 185 188 190 201 203 207 209 210 212 214 216 219 221 222 224 228 230 9 10 93 94 95 96 103 104 105 106 159 160 165 1...
result:
ok good job!
Test #29:
score: 0
Accepted
time: 2ms
memory: 12884kb
input:
109 984 2121221222211211121212122121112211121221221122222122111111112121212122112212111222111111221122111121211122112 1111212122211121112222112221112112121111211211111222112112222112121112222112112111221122121122211222112122212
output:
209 11 13 14 16 24 26 32 34 38 40 42 44 52 54 70 72 76 78 82 84 90 92 94 96 101 103 105 107 63 64 10 12 13 15 22 24 26 28 36 38 40 42 51 52 54 56 69 71 74 76 81 83 84 86 89 91 93 95 96 98 99 101 103 105 61 63 9 11 12 14 20 22 24 26 28 30 34 36 38 40 49 51 52 54 56 58 67 69 73 75 80 82 83 85 86 88 92...
result:
ok good job!
Test #30:
score: 0
Accepted
time: 3ms
memory: 12752kb
input:
33 61 221112222112212211212221112222221 222112222211222112122121112122221
output:
16 5 7 11 13 17 19 20 22 26 28 3 5 7 9 13 15 18 20 24 26 9 11 14 16 22 24 10 12 15 17 20 22
result:
ok good job!
Test #31:
score: 0
Accepted
time: 5ms
memory: 14504kb
input:
402 243 2211121211221211111221122111221221221112121221211211111221221222211212121111122121111211222222211112112122212211122211122121122212211122222221221121112212122221112222111221122212221111211121222112211122211212111111122221122211122122211122121212122212122112211122111211221222112111112121112212...
output:
570 2 3 4 6 10 12 14 15 18 20 23 25 27 29 31 33 38 40 43 45 48 50 65 67 72 74 78 80 87 89 101 103 110 111 112 114 118 120 123 125 127 129 144 146 154 155 159 161 166 168 171 173 180 182 193 195 197 199 203 205 208 210 219 221 224 226 233 235 253 255 257 259 262 264 266 268 274 276 292 294 302 304 30...
result:
ok good job!
Test #32:
score: 0
Accepted
time: 5ms
memory: 14352kb
input:
380 225 1122122211112212212122121222211212122222212121112212111221222111121221122112212222212212121122112221122211221211222212211211211212221111211112212112212222111122112211121222222112211122122111112112221211221211112111222221222112112111212121222122212111222122212211112122212111112212112211122222...
output:
774 1 3 11 13 15 17 29 31 45 47 52 54 61 63 69 71 73 75 90 92 94 96 99 101 104 106 110 112 119 121 122 124 125 127 132 134 137 139 142 144 145 147 154 156 160 162 164 166 175 177 179 181 187 189 194 196 201 203 209 211 213 215 227 229 231 233 236 237 242 243 249 251 258 260 263 265 276 278 281 283 2...
result:
ok good job!
Test #33:
score: 0
Accepted
time: 9ms
memory: 13816kb
input:
310 958 2222122112221211222222112111112211211221122212211121212221221221212122112221121121222222122121212222121222211211211122212112112122121222222111222212112211212121222112212121121212112212212212121112211111212221222212221112221212212221211122222121221112221222222211121122211212212112212111112122...
output:
690 7 9 14 16 22 24 25 27 30 32 33 35 36 38 40 42 50 51 54 56 70 72 75 77 78 80 107 109 110 112 113 115 121 123 124 126 139 141 148 150 152 154 163 165 171 173 178 180 192 194 197 199 216 218 233 235 246 248 260 262 264 266 269 271 277 279 283 285 300 302 305 307 57 58 65 66 93 94 157 158 207 208 6 ...
result:
ok good job!
Test #34:
score: 0
Accepted
time: 8ms
memory: 14788kb
input:
424 565 2121222121112111112211111112121221212221122222221211212112112121122122211222112111222211111122122112111221222211212221211121122212112121112212112121212121121112211111122211122222122212111111112221122122112212222222121112222222211112211212121212221222212121112212212112222111122212211221122111...
output:
1137 2 3 9 11 17 19 31 33 40 42 51 53 54 55 59 61 64 66 68 70 72 74 77 79 82 84 92 94 98 100 102 104 106 108 111 113 121 123 124 126 131 133 137 139 143 145 154 156 158 160 166 168 172 174 191 193 196 198 200 202 203 205 218 220 230 232 234 236 243 245 247 249 257 259 261 263 267 269 274 276 282 284...
result:
ok good job!
Test #35:
score: 0
Accepted
time: 3ms
memory: 14192kb
input:
348 808 1212221222122212121111111122121211221212111111222122112211121211211112222212211111221222221211211212111221111222122111121122112111221111211112222212111221221121221211111221111122121121211212121211222121111212122112222111222122111212221211111212121222121111122112112211221121111112111221211122...
output:
300 2 3 18 20 32 34 40 42 48 50 51 53 54 56 58 60 68 70 77 79 92 93 95 97 100 102 105 107 115 117 120 122 124 126 127 129 132 134 140 142 146 147 156 158 164 166 171 173 176 177 178 179 180 182 195 197 200 201 209 211 213 215 217 219 226 228 236 238 242 243 249 251 252 254 257 259 263 265 267 269 27...
result:
ok good job!
Test #36:
score: 0
Accepted
time: 2ms
memory: 12768kb
input:
72 980 212222212121221212221211122121121122212211112212121222121122121121122212 112212121112211212222112122222122112121122211112221112122212112212122222
output:
75 22 24 29 31 40 42 56 58 62 64 65 67 69 71 9 10 20 22 27 29 31 33 39 41 54 56 60 62 64 66 67 69 7 9 19 21 26 28 37 39 41 43 53 55 59 61 62 64 6 8 18 20 24 26 28 30 36 38 39 41 52 54 58 60 61 63 5 6 16 18 22 24 26 28 35 36 50 52 56 58 14 16 21 23 24 26 48 50 55 57 13 15 20 22 23 25 46 48 54 56 11 1...
result:
ok good job!
Test #37:
score: 0
Accepted
time: 0ms
memory: 12828kb
input:
51 563 112111212112122112222111111222121121111121212222112 112111122121211121111212221211121222112212112211212
output:
27 15 17 21 23 32 34 39 41 42 43 44 45 48 49 7 8 11 12 13 14 20 22 23 25 30 32 34 36 40 42 45 47 19 20 22 24 29 30 32 34 42 44 20 22 24 26 30 32 18 20 22 24 20 22
result:
ok good job!
Test #38:
score: 0
Accepted
time: 2ms
memory: 13376kb
input:
194 823 11211122111222111211221111212111222111111212221221221111122221221121111111111111111222112221221122221222211121212122221222212221211121121112122222122222111212112112122212122221221121111211222211 2212211222112211211212122211222212221211121221122111111111111222212122111112221211112111122112212...
output:
383 1 3 6 8 10 12 16 18 19 21 25 27 28 29 32 33 40 42 43 45 47 49 56 58 62 64 82 84 87 89 92 93 95 97 101 103 107 109 112 113 124 126 133 135 152 154 158 159 161 163 167 169 174 176 178 180 186 188 192 194 127 128 129 130 139 140 147 148 181 182 4 6 8 10 12 14 17 19 20 22 23 25 26 28 30 32 38 40 41 ...
result:
ok good job!
Test #39:
score: 0
Accepted
time: 2ms
memory: 13456kb
input:
218 200 21211222212221121221212121121121211111212222222212212211221111111111221121221211211111122211112222121122222122222121212111221111221122121112221122211121222122112112122222121221211222222211221112212121122211211121121222 2122111222221111211122221121122212221112211221112122211121212221121222221...
output:
351 4 6 8 10 13 15 28 30 37 39 40 41 54 56 58 60 68 69 71 73 74 76 86 88 93 95 101 103 108 110 114 115 122 124 127 129 132 134 138 140 143 145 152 154 156 158 162 164 173 175 179 181 187 189 192 194 200 202 204 206 207 209 211 213 25 26 33 34 197 198 215 216 7 8 30 32 35 37 38 40 53 55 57 59 60 62 6...
result:
ok good job!
Test #40:
score: 0
Accepted
time: 0ms
memory: 13640kb
input:
261 918 121221112112122122111121212112212211111121111212111212221112121112121122121112221111222121111222121221222112111212211212212211212122122112122111112222212222212111122111222222211222112122222112122122121121111121222221121112121222212111211122111211111112122212222 111212211121211222212211211212...
output:
645 5 7 9 11 12 13 17 19 21 23 24 25 28 30 32 34 44 46 50 52 58 60 64 66 69 71 77 79 83 85 92 94 99 101 102 104 106 108 110 112 116 118 119 121 125 127 133 135 139 141 145 147 162 164 167 169 175 177 180 182 189 191 200 202 203 205 215 217 218 220 231 233 235 237 239 241 244 246 250 252 4 6 15 17 22...
result:
ok good job!
Test #41:
score: 0
Accepted
time: 5ms
memory: 14716kb
input:
412 618 1112222122111122221121221122222221121112222212121111111221221222111121122111111122122222112112122121111221121221111221111222121221221121111122111111212122111211221111211211211212211111112222121211222112212121222112121221222122121222211221222112112211222112222121111221212211221122211212222121...
output:
1314 2 4 8 10 13 15 20 21 25 27 33 35 36 38 48 50 58 60 64 65 67 69 70 72 80 82 89 91 92 94 103 105 106 108 114 116 120 122 127 129 133 135 139 141 147 149 152 154 159 161 165 167 168 170 171 173 174 176 186 188 195 197 201 203 217 219 229 231 235 237 245 247 249 251 255 257 265 267 273 275 277 279 ...
result:
ok good job!
Test #42:
score: 0
Accepted
time: 9ms
memory: 13880kb
input:
252 461 211122121121212111111222121212221122112221222222121122211112222221122221122121222121221221111222211112111212111122122212122211111221121111112111122111112212212121111222112121111211122211121221221222211122121112111112112122211111221222111122111111112121 111211122112112121212111211111112221111...
output:
838 8 10 15 17 32 34 36 38 40 42 50 52 55 57 65 67 71 73 89 91 97 99 102 104 108 110 124 126 131 133 134 136 141 143 147 149 156 158 168 170 173 175 178 180 184 186 199 201 206 208 210 212 216 218 222 224 234 236 240 242 1 2 21 22 251 252 6 8 13 15 17 19 31 33 34 36 38 40 48 50 54 56 57 59 64 66 70 ...
result:
ok good job!
Test #43:
score: 0
Accepted
time: 3ms
memory: 14576kb
input:
403 762 1121111121211222121112221221121121112122122211222212211122221221112211212221112212122122122122212211222222212211122121121112122211112222212211112211112122222111112121222211211122111211211112222112211111211111222122222222221112112122111122221211221212211221221112212211121122221221111222212221...
output:
581 1 3 7 9 12 14 20 22 28 30 38 40 45 47 55 57 62 64 66 67 68 70 75 77 87 89 98 100 110 112 117 119 120 122 128 130 136 138 140 142 146 148 156 158 170 172 173 175 178 180 182 183 188 190 195 197 201 203 207 209 224 226 227 229 236 238 243 245 252 254 261 263 271 273 277 279 282 284 297 299 300 301...
result:
ok good job!
Test #44:
score: 0
Accepted
time: 3ms
memory: 12772kb
input:
76 510 2222111212221211121221222112212211112211122222112221211122211121122212122122 2122112112212212121222212122121222221221211211121212211122121221222211122111
output:
56 3 5 14 16 22 24 27 29 30 31 35 37 41 43 47 49 52 53 55 57 64 66 71 73 74 76 2 3 5 7 12 14 33 35 36 38 39 41 48 50 53 55 57 59 62 64 65 67 11 13 34 36 37 39 40 42 50 51 60 62 66 68 10 11 35 37 38 40 42 44 64 66 68 70 8 10 36 38 40 42 43 45 62 64 66 68 69 71 38 40 41 43 45 47 67 69 70 72 39 41 43 4...
result:
ok good job!
Test #45:
score: 0
Accepted
time: 3ms
memory: 14044kb
input:
336 811 2211111222112221111221212112121111111221121221112122121221212111211122222221222221222221222111121222212121221122222212212122121212122221112222222221121211111212222122122112112121112112211212212122211212222111212212211211222122212222212211221211221212112111122221212111221112111121111122222122...
output:
896 2 4 6 8 10 12 22 23 26 28 37 39 43 45 47 49 55 57 67 69 76 78 97 99 106 108 109 111 120 121 122 124 137 139 147 149 156 158 159 161 170 172 173 175 176 177 179 181 182 184 186 188 189 191 198 200 208 209 213 215 219 221 228 229 238 240 244 246 252 253 257 259 262 263 268 270 272 274 277 279 284 ...
result:
ok good job!
Test #46:
score: 0
Accepted
time: 2ms
memory: 14276kb
input:
363 525 1121111112211122212122112212112111112212221221121112111112212212212221121121122212221111111111212112212122211122211222111121122122122121112222111121121111111211212211112221121112112112111211222112112122112212221212212221112222122211221221112212111222212222111122222221222122221212112111212121...
output:
532 1 3 9 11 13 15 20 22 24 26 35 37 46 48 57 59 66 67 70 72 73 75 77 79 81 83 93 95 98 100 104 106 109 111 114 116 121 123 124 126 128 130 138 140 145 147 148 150 156 158 159 161 162 164 167 169 172 174 176 178 179 181 182 184 186 188 189 191 194 196 197 199 200 202 204 206 221 223 227 229 231 233 ...
result:
ok good job!
Test #47:
score: 0
Accepted
time: 7ms
memory: 12936kb
input:
134 452 22111112221112112112222121221222212222212221112222112212122221222121112212112221122212212121121122221212111211111221221221122122121112 21221111122111211222122122222221222221111122211222112122122122122122112112211121122212211221211112212121122222212211121212221122221112
output:
105 2 3 6 8 9 11 14 15 19 21 26 28 43 45 49 51 60 62 67 69 74 76 79 81 91 93 94 96 104 106 108 110 113 115 121 123 127 129 17 18 4 6 28 30 42 44 47 49 58 60 65 67 72 74 78 80 89 91 93 95 102 104 106 108 110 111 120 122 125 127 29 31 41 43 56 58 64 66 71 73 77 79 87 89 91 93 100 102 104 106 108 110 1...
result:
ok good job!
Test #48:
score: 0
Accepted
time: 2ms
memory: 12924kb
input:
134 865 22212222211222112122112221122122221111121221112211122121112211222212121222222122222112212122212122111121221221121222112212212212112222 22122112121212112121121112222222122212112221221222122222111111221211122212122121222212221221222222212112112222122211211112221112121222
output:
126 9 11 14 16 20 22 25 27 34 36 43 45 46 47 51 53 54 55 57 59 61 63 71 73 86 88 92 94 96 98 101 103 110 112 113 115 117 119 121 123 130 131 3 4 17 18 29 30 83 84 89 90 8 10 13 15 19 21 24 26 33 35 36 38 42 43 49 51 55 57 58 60 62 64 99 101 103 105 111 113 118 120 123 125 84 86 7 8 12 14 18 20 23 25...
result:
ok good job!
Test #49:
score: 0
Accepted
time: 1ms
memory: 13792kb
input:
274 107 2212222112221112121222212212122212121112121212122111221221221111211211222211211211111122112222112112122122222211222111211222212221121122112211121211112221221121221111212222121211122111222212221222211112122222111212211111112121112222222221212222112222211122211222121111121122 22122212111121221...
output:
682 12 14 36 38 49 51 55 57 63 65 69 71 75 77 85 87 89 91 95 97 101 103 111 113 120 122 130 132 133 135 137 139 142 144 149 151 157 159 160 162 165 167 168 170 178 180 183 185 189 191 200 202 203 205 213 215 221 223 227 229 245 247 253 255 258 260 271 273 7 8 11 13 34 36 48 50 57 59 61 63 67 69 70 7...
result:
ok good job!
Test #50:
score: 0
Accepted
time: 7ms
memory: 14624kb
input:
414 808 2121221211222112211122122222211112211121122211221122212121222222222222212111121212122112111112121111222222111212122122122222211211112121221221111211121112221112121112122212112222212212122221222222121211112122212212211111222212112112112111221221222121222112112211222121222121122122111121211212...
output:
971 8 10 13 15 17 19 35 37 39 41 44 46 48 50 73 75 85 87 88 90 96 98 106 108 125 127 128 130 141 143 150 152 156 158 162 164 166 167 172 174 181 183 200 202 208 210 214 216 226 228 229 231 232 234 235 237 253 255 256 258 260 262 280 282 287 289 292 294 295 297 299 301 302 304 318 320 326 328 330 332...
result:
ok good job!
Test #51:
score: 0
Accepted
time: 0ms
memory: 15120kb
input:
482 170 1121222222122111121212122122122212121122112211212221211221221222211221211212112222122121121212211111111221112221122112111222212221211112221122222121122222121211121111121221121121112111112222112221122212111211122212111111221112221112121211212112122111121221112121212221122221211222222211111211...
output:
978 2 3 16 18 23 25 29 31 37 39 41 43 45 47 55 57 61 63 67 69 72 74 77 79 88 90 93 95 103 105 107 109 112 114 121 123 134 136 139 141 148 150 160 162 169 171 175 177 179 181 185 187 191 193 196 198 204 206 208 210 220 222 224 226 230 232 237 239 242 244 253 255 257 259 264 266 268 270 276 278 291 29...
result:
ok good job!
Test #52:
score: 0
Accepted
time: 0ms
memory: 12904kb
input:
117 25 112212222221112122221111222222122211212111122122111121122211121211121222122221122111111211222122221221211121222111222 111122222122122111222212111122112222211121122212122212212211111121112222122212112121211222111112221211112112221222222
output:
78 10 12 20 22 24 25 34 36 44 46 48 50 52 53 54 56 60 62 64 65 68 69 81 83 89 91 103 105 111 113 77 78 107 108 8 10 12 14 19 21 33 35 36 38 47 49 55 57 80 81 87 89 91 93 101 103 110 112 105 107 6 8 10 12 18 20 32 34 38 40 46 48 49 51 57 58 85 87 89 91 100 102 109 110 112 114 103 105 4 6 17 19 30 32 ...
result:
ok good job!
Test #53:
score: 0
Accepted
time: 1ms
memory: 13980kb
input:
344 865 1111222222222122212121112221111122221122111221111112222122112112111211221222222221211111121121211222121122112222121112212222212221111121122221222111211112212111121222211111121111221122121122112112212221122221222121222121222221212221221122211111111211121112121212212112112222122121111122212212...
output:
505 4 5 36 38 40 42 45 47 58 60 69 71 73 75 83 85 91 93 94 95 96 98 106 107 108 110 111 113 114 116 135 137 145 147 152 154 160 162 177 179 181 183 187 189 191 193 194 196 198 200 202 204 234 236 239 241 248 250 252 254 265 267 268 270 279 281 289 291 298 300 303 305 308 310 318 320 334 336 19 20 21...
result:
ok good job!
Test #54:
score: 0
Accepted
time: 6ms
memory: 14668kb
input:
416 266 1122121211112212122212111111222122221212211112211122211222222112212211121221121212112211211111222222211212111222121112111112211212111221212112222122112222211112122121111111211111211121212111212111121121212121221122222221222222121221212221111212121212212212212212211121121222211111112112121122...
output:
837 1 3 12 14 27 29 32 34 41 43 46 48 53 55 61 63 68 70 75 77 82 84 86 88 89 91 101 103 106 108 114 116 118 120 125 127 130 132 139 141 148 150 155 157 165 167 178 179 182 183 184 185 186 187 189 191 192 193 199 201 208 210 212 214 220 222 234 236 244 245 248 249 263 265 267 269 275 277 283 285 288 ...
result:
ok good job!
Test #55:
score: 0
Accepted
time: 1ms
memory: 12984kb
input:
122 942 11212212222212221121121211211221222121122222221111121111122222222122212111221222112112111112112221121211221111221212221221 11122212121221112122222112111122211222121111111222222222122111211222121212211121221221121112212222221212112111221212212211
output:
120 11 13 16 18 19 21 24 26 27 29 37 39 46 48 52 54 56 58 71 73 80 82 83 85 86 88 92 94 96 98 103 105 109 111 119 121 3 4 65 66 9 11 15 17 18 20 21 23 35 37 45 47 48 50 58 60 69 71 79 81 82 84 85 87 88 90 94 96 101 103 104 106 107 109 111 112 14 16 17 19 34 36 44 46 47 49 50 52 68 70 78 80 81 83 84 ...
result:
ok good job!
Test #56:
score: 0
Accepted
time: 7ms
memory: 12708kb
input:
45 417 111112112221111122222222221212211212112122121 212122222212121122211111211211121221122121122
output:
55 4 6 7 9 15 17 31 33 36 38 44 45 2 4 5 7 9 11 13 15 16 18 30 32 33 35 42 44 1 2 3 5 7 9 11 13 14 16 17 19 5 7 8 10 12 14 15 17 18 20 6 8 9 11 13 15 16 18 20 22 7 9 10 12 14 16 18 20 22 24 8 10 11 13 16 18 20 22 24 26 9 11 12 14 18 20 22 24 10 12 14 16 19 21 12 14 16 18 20 22 14 16 17 19 21 23 18 2...
result:
ok good job!
Test #57:
score: 0
Accepted
time: 3ms
memory: 14772kb
input:
440 881 1111221112211221121112222212222122221122112221212122121122212221111221221221222212121112112121112221122112112212212211212121122112112112121211221112112221111121121111112112121222212112222112222122221121212112222211111212211222221221111221112221212212122112111212112211211211221112211121222222...
output:
625 5 7 12 14 16 18 20 22 37 39 41 43 46 47 54 56 63 65 79 81 84 86 93 95 99 101 103 105 106 108 116 118 123 125 130 132 141 143 149 151 157 159 160 162 167 169 170 172 175 177 183 185 189 191 198 199 206 208 216 218 222 224 231 233 235 237 239 241 247 249 253 255 256 258 262 264 266 268 269 271 272...
result:
ok good job!
Test #58:
score: 0
Accepted
time: 6ms
memory: 13980kb
input:
284 884 21111212121111112111222121122122212122111222212122212211221121211111212211121222112222122212122121211112121122222122222211111112111122212222122221111121221212222221221212221111212211111121111211111222112221212121122112211211111222211122221121121222111212211111122221111121111122211211 1112122...
output:
794 15 17 19 21 24 25 27 29 37 39 44 46 54 56 58 60 63 65 72 74 80 82 99 101 106 108 120 122 128 130 145 147 172 174 180 182 187 189 192 194 200 202 211 213 215 217 219 221 222 224 231 233 238 240 241 243 248 250 255 257 265 267 271 273 278 280 282 284 1 2 7 8 51 52 61 62 207 208 209 210 13 15 17 19...
result:
ok good job!
Test #59:
score: 0
Accepted
time: 6ms
memory: 14696kb
input:
422 324 1122222121221221121221212122111112212121211222221221212112222221112112212211111221112221222212122122211121121111211111221222122221122121122221122221221221122122222212222121111121211212222121222222111112212111112221221112111111121122111221121222222112211211222212222121122112221121111112112212...
output:
888 1 3 15 17 28 30 41 43 55 57 63 65 67 69 74 76 81 83 91 93 101 103 105 107 111 113 118 120 125 127 130 132 137 139 142 144 149 151 153 155 196 198 216 218 220 222 228 230 231 233 235 237 238 240 247 249 251 253 254 256 267 269 271 273 276 278 279 281 286 288 299 301 306 308 310 312 328 330 333 33...
result:
ok good job!
Test #60:
score: 0
Accepted
time: 4ms
memory: 13720kb
input:
247 857 1112211211222111211122112111221222122212221111212121121212221211112122222111221211121121121122221211112221221122121212222122122111212112121211221112112111211222211221122221112222222111122112221122111111121111111211112122112121122211212212121122221 22111112221122221222211122212211112111221111...
output:
583 3 5 9 11 19 21 27 29 51 53 56 57 62 64 73 75 77 79 84 86 87 89 92 93 98 100 108 110 127 129 133 135 140 142 144 146 148 150 151 153 161 163 165 167 171 173 181 183 187 189 192 194 196 198 204 206 220 222 225 227 229 231 240 241 246 247 121 122 155 156 233 234 237 238 1 3 10 12 20 22 28 30 49 51 ...
result:
ok good job!
Test #61:
score: 0
Accepted
time: 6ms
memory: 13776kb
input:
272 376 22221122111211111222211222221222212122221221111222212222222122211212112222111121222211222221222212121221112122211211221221112111111212121212211122222122222221222222211112121221212211221122222111222221111121211221112221211112122221222121211211211212111121222122111111122111 2222211111111222212...
output:
586 5 7 8 10 12 14 16 18 28 29 43 45 63 65 68 70 74 76 84 86 103 105 111 113 114 116 121 123 125 127 134 135 136 137 139 141 143 145 165 167 180 182 184 186 191 193 199 201 207 209 219 221 237 239 240 242 243 245 248 250 260 262 266 268 23 24 35 36 205 206 211 212 229 230 235 236 269 270 10 12 14 15...
result:
ok good job!
Test #62:
score: 0
Accepted
time: 4ms
memory: 15088kb
input:
456 295 1221111112111221222222121212221222112212111112212221212122122122122211211211122122222212221211122222212211111212121111122222112212121211221121212221122112111221211122121121212121212112122112221122211212111221221211221122211111221211221112221122111112111121222121112112112221222221211122221112...
output:
952 3 5 8 10 12 14 16 18 21 23 35 37 45 47 56 58 62 64 68 70 71 73 74 76 92 94 104 106 114 116 118 120 123 125 127 129 134 136 138 140 147 149 151 153 154 156 170 171 174 175 182 184 188 190 194 196 198 200 204 206 208 210 213 215 218 220 226 228 231 233 236 238 241 243 253 255 263 265 269 271 284 2...
result:
ok good job!
Test #63:
score: 0
Accepted
time: 8ms
memory: 15156kb
input:
463 947 1111221121222222122211112221111122122112211211211211222221121112121121122222211121121122221212212122112121212112111112112222211222121121121111111211121121111111112222112121221121122112111211222221122221222112111221212122221211221111221211222121221111221111222111212122111111121212222111112221...
output:
1304 3 5 7 9 10 11 20 22 27 29 31 33 38 40 44 46 47 49 50 52 57 59 62 64 67 69 70 72 82 84 85 87 93 95 98 99 101 103 106 107 110 112 116 118 119 121 126 128 133 135 151 153 161 163 167 169 170 171 175 177 179 181 189 191 196 198 202 204 206 208 210 212 218 220 225 227 231 233 237 239 249 251 255 257...
result:
ok good job!
Test #64:
score: 0
Accepted
time: 4ms
memory: 13468kb
input:
242 384 11212222111222212221111221121211122111212121221121112222122212112222212112112222221112211222112221211221112112212121212122121212211211222212111111221221211211122212122211112212112222221221212112111212222222212121212122211111121121222222112211 2111112111211212221221112211112212112211212221222...
output:
222 1 3 8 10 19 21 25 27 30 32 35 37 46 48 51 53 63 65 70 71 76 77 82 84 88 90 92 94 102 104 108 110 112 113 116 117 126 127 129 131 132 134 140 142 153 155 162 163 165 167 171 173 178 180 194 196 219 221 227 229 237 239 240 242 73 74 85 86 99 100 151 152 159 160 175 176 191 192 211 212 215 216 7 9 ...
result:
ok good job!
Test #65:
score: 0
Accepted
time: 3ms
memory: 13556kb
input:
256 235 2122221122211122222211121122211121221212112122111121221212121122221112222111121122121221222122122221121111122221222221212112121112122121212222222111111222121111222121212212112221222122121221121111121211122222122121222111111122121112212221122211122122122221 21111112221121221112112212111122221...
output:
391 6 8 20 22 24 26 29 31 40 42 46 48 60 62 66 68 73 75 80 82 88 90 92 94 95 97 100 102 106 108 121 123 124 125 126 127 128 130 134 135 145 147 156 158 169 171 172 174 183 185 189 191 192 194 200 202 217 219 228 230 237 239 242 244 254 256 11 12 83 84 119 120 5 7 19 21 22 24 28 30 38 40 45 47 48 50 ...
result:
ok good job!
Test #66:
score: 0
Accepted
time: 5ms
memory: 15208kb
input:
464 855 1112211221222222211221211111121111222222121212122122212211221211221222122222111121122111221221111112212111112122221122222212212212222212221211122211121121122221222112121112212212222121222221112211221212211121121221212121222212211212121122212212121111111222111211222222221112212111212122222112...
output:
1327 2 4 6 8 17 19 23 25 33 35 55 57 58 59 62 64 65 67 76 78 81 83 84 86 87 89 91 93 98 100 107 109 115 117 123 125 140 142 146 148 150 152 153 155 163 165 168 170 189 191 194 196 203 205 207 209 227 229 234 236 246 248 256 258 260 262 270 272 277 279 289 291 306 308 314 316 332 334 346 348 352 354 ...
result:
ok good job!
Test #67:
score: 0
Accepted
time: 8ms
memory: 14008kb
input:
321 947 1211121122121112121121212222111212112211121222222212221222121121111122212122221222121111211122112221111122221121122221122122121122212221122121222211112111112212112211221111211111211222212212112222221111221111122211121212212212112211121121221221122222222112112111112221212211211211122211211112...
output:
392 4 6 8 10 14 16 19 21 24 26 30 32 36 38 40 42 43 45 49 51 53 55 60 62 63 65 84 86 89 91 94 96 108 110 117 119 126 128 135 137 146 148 151 153 160 162 164 166 168 170 173 175 180 182 184 186 191 193 198 200 204 206 212 214 216 217 218 219 223 225 229 231 236 237 238 239 244 246 253 255 256 258 259...
result:
ok good job!
Test #68:
score: 0
Accepted
time: 6ms
memory: 13712kb
input:
268 726 1111222212222222121122221211122121122221112222222121212122211211212121221221112122121222111221222112111212122121212121221111122122111222122212112121121121112221111212212221122212112111221122221222112221121212221211221111112111112121222212122112112222122212212121212212 11112112111221211121221...
output:
497 18 20 26 28 33 35 39 41 59 61 62 64 75 77 88 90 97 99 100 102 120 122 130 132 142 144 147 149 150 152 153 155 159 161 171 173 178 180 181 183 186 188 195 197 198 199 212 214 216 218 227 229 232 234 242 244 245 247 251 253 255 257 260 261 262 263 16 18 24 26 31 33 38 40 58 60 61 63 74 76 87 89 96...
result:
ok good job!
Test #69:
score: 0
Accepted
time: 1ms
memory: 13220kb
input:
159 708 112122221111122221211112111122111111121111222212111112111122112222112211111112111112221211111212122111221121222111111222211122122122222111211212222122111121112 111122211211121211121211111111122211112112122222212212211111211212111122121212212112122211212221111211221122111211122222112222111212...
output:
235 8 10 19 21 24 26 30 32 38 40 45 47 57 59 61 63 70 72 76 78 82 84 97 99 101 103 105 107 117 119 124 126 130 131 138 139 140 142 148 149 154 155 158 159 6 8 10 12 17 19 21 23 26 28 29 31 32 34 40 42 43 45 47 49 55 57 58 60 63 65 69 71 74 76 80 82 84 86 95 97 99 101 103 105 107 109 115 117 119 121 ...
result:
ok good job!
Test #70:
score: 0
Accepted
time: 9ms
memory: 13744kb
input:
252 78 221121122112221221111121211112121221121212221211212111111111112212122111111212212112212221122111122212222211212122211111111211112111111121122121211121211212122212121212211222122212211111121122111112212211112122112222121112221221112222112111221212222112 1221122222111112121112211111121222111221...
output:
580 1 3 7 9 11 13 25 27 35 37 40 41 46 48 51 53 61 63 67 69 77 79 83 85 86 88 90 92 96 98 101 103 107 109 122 124 127 129 138 140 142 143 144 145 147 149 152 154 171 173 175 177 179 181 189 191 196 198 200 201 208 210 212 214 220 222 230 232 235 237 239 241 248 250 5 6 17 18 9 11 27 29 37 39 44 46 4...
result:
ok good job!
Test #71:
score: 0
Accepted
time: 3ms
memory: 13236kb
input:
188 305 12222121122111121122222211222211221212112122212112112212112221212122222111122111121111111111221111122112122212211122222112112221111211211221112111122111111221212221212212112112112222122222 2122112122111211221122221211212211121212112122211111112121222212121211121222222211212111111222112112212...
output:
194 7 9 16 17 18 19 24 26 30 32 38 40 47 49 50 52 56 58 71 73 77 79 82 84 98 100 102 104 110 112 113 115 122 123 127 129 133 135 136 138 141 143 146 148 154 156 160 161 166 168 174 176 178 180 1 2 11 12 61 62 63 64 119 120 5 7 22 24 29 31 36 38 45 47 49 51 54 56 70 72 73 75 76 78 79 81 84 86 97 98 1...
result:
ok good job!
Test #72:
score: 0
Accepted
time: 1ms
memory: 14968kb
input:
451 381 2122121211221222121122122211122222122222221212222112211121211212221211222212112222121212112122222211212211212121222221121211212211121121211222211112122221122221212121222212211221211112222121122111211212111121111221112222122221121111222121212211121121122222111122112111211212122121212221221222...
output:
849 2 3 6 7 8 9 11 13 18 20 26 28 49 51 53 55 59 61 68 70 76 78 88 90 98 100 104 106 117 119 122 124 128 130 132 134 137 139 143 145 153 155 173 175 179 181 189 191 193 195 197 199 202 204 207 209 213 215 225 227 228 230 242 244 246 248 249 251 256 258 262 264 265 267 269 271 293 295 299 301 311 313...
result:
ok good job!
Test #73:
score: 0
Accepted
time: 8ms
memory: 13444kb
input:
239 584 22211122211121121212121122121112121121222121222212111211212211212111112211222221122122212221221222212221212112221221122221212222122221111122122121122212221112221122121221122121221111121212221212221111221221111222221211212221111212222222221 2221212221212211222111212222121221121111122211212121...
output:
333 5 7 11 13 14 16 24 26 35 37 44 46 55 57 61 63 70 72 73 75 81 83 84 85 106 107 109 111 113 115 116 118 133 135 145 147 154 156 160 162 168 170 178 180 193 195 199 201 203 205 209 211 217 219 226 228 123 124 185 186 7 9 12 14 16 18 33 35 37 39 46 48 53 55 57 59 63 65 68 70 74 76 85 87 107 109 117 ...
result:
ok good job!
Test #74:
score: 0
Accepted
time: 7ms
memory: 14212kb
input:
331 115 1212121111112121121121121211112211211111111111221212111122211222222111212222112122212211222221121221111221122111121212212211112211112121221122211222222222212121212111122112112111112121121222122111221221122112122211221211221122211212121121221121122212112212211111222221221122112222212111122122...
output:
1090 2 3 11 13 16 18 19 21 22 24 30 32 33 35 45 47 55 57 60 62 69 71 72 74 77 79 87 89 94 96 102 104 106 108 117 119 125 127 131 133 136 138 139 141 144 146 160 161 162 163 166 168 173 175 184 186 196 198 202 204 206 208 213 215 219 221 223 225 228 230 235 237 241 243 245 247 251 253 255 257 261 263...
result:
ok good job!
Test #75:
score: 0
Accepted
time: 5ms
memory: 15192kb
input:
484 949 2222111221121222111212122122222111112222221112111111211122211221112222212122111221121221222112212122211222212222121222221121222122122221121111111221112112111111211212112122212212211212122111212122111212111221112112121212121212211211122112112121211211121221111122211121212211212211222111212222...
output:
1354 4 6 9 11 16 18 31 33 42 44 46 48 53 55 59 61 63 65 76 78 91 93 106 108 120 122 135 137 138 140 147 149 151 153 154 156 162 164 167 169 170 172 174 176 180 182 185 187 189 191 194 196 198 200 205 207 209 211 212 214 228 230 233 235 239 241 253 255 259 261 265 267 270 272 273 275 276 278 279 281 ...
result:
ok good job!
Test #76:
score: 0
Accepted
time: 6ms
memory: 15056kb
input:
463 392 2222111122111122222112221221121122222222211221111122111222111211211221112221212211122122121221212211222121111221212222112221222112221212211122222122221112211211112111122111121222122211222221221222212212111111222112221222212122121212222222112112122112122211221221211222211121111122121122212122...
output:
1152 4 6 10 11 14 16 20 22 28 30 31 33 42 44 49 51 54 56 63 65 67 69 71 73 83 85 91 93 99 101 104 105 109 111 114 116 119 121 128 130 136 138 150 152 155 157 158 160 163 165 169 171 182 184 202 204 211 213 238 240 241 243 247 249 254 256 263 265 269 271 273 275 282 284 292 294 298 300 302 304 308 31...
result:
ok good job!
Test #77:
score: 0
Accepted
time: 2ms
memory: 13076kb
input:
170 178 11111222222112212112122221111222221221121221221211221211112111112221212111221111121121222212212112212111121211211112212221221111221122221122111111211211222221211111112211 1212212221212211211221111111121122212211111121212121121221221121221112122212111112112222112221121112121212221111211121112...
output:
294 4 6 12 14 18 20 25 27 37 39 48 50 54 56 76 78 82 84 95 97 101 103 111 113 124 126 130 132 136 138 140 142 147 149 150 152 168 170 69 70 71 72 93 94 159 160 2 4 6 8 13 15 16 18 20 22 24 26 27 29 36 38 46 48 52 54 56 58 75 77 78 80 99 101 103 105 113 115 123 124 126 128 129 131 135 137 139 140 142...
result:
ok good job!
Test #78:
score: 0
Accepted
time: 2ms
memory: 12796kb
input:
52 833 1122211111222221122222221221122212212122221211121122 1221122111221212122111212122112222221122222121212222
output:
50 2 4 9 11 27 29 44 46 48 50 5 6 15 16 7 9 11 13 26 28 42 44 46 48 24 26 41 43 44 46 48 49 23 25 40 42 43 45 46 47 22 24 39 41 21 23 37 39 41 43 20 22 35 37 39 41 34 36 37 39 32 34 36 38 31 33 34 36 38 40 30 32 33 35 29 31 32 34 28 30 31 33 26 28 30 32 25 27 24 26 27 29 23 25 26 27 29 31 22 23
result:
ok good job!
Test #79:
score: 0
Accepted
time: 2ms
memory: 13928kb
input:
289 337 2212212212211212221122222221211112121121212121221121222112212121121222122122121112212222212121221212121222111112222111211111121112222211111121212221222211221212111121111221121211112121122222121212211212121112111112212221211212112211112111122222221121111111112212212211222221211221122112111 22...
output:
714 4 6 11 13 18 20 29 31 36 38 48 50 55 57 63 65 78 80 106 108 115 117 119 121 126 128 134 136 152 154 160 162 165 167 171 173 176 178 180 181 185 187 197 199 206 208 213 215 227 229 233 235 239 241 257 259 261 263 264 265 267 269 275 277 279 281 283 285 27 28 39 40 43 44 51 52 91 92 203 204 10 12 ...
result:
ok good job!
Test #80:
score: 0
Accepted
time: 1ms
memory: 13828kb
input:
275 642 22211221221111122222212111222212222111212212211221211111121221112222211211211112122212211121112121212212121112222112122122121112121222211221122212212222211211111221212212122212112122112222222212111211121121211112111121121212122211111121122212222211211122211112211111122111221 2112111111222121...
output:
628 3 5 10 12 35 37 45 47 51 53 61 63 69 71 72 74 75 77 87 89 101 103 106 108 113 115 124 126 135 137 139 141 153 155 156 158 176 178 182 184 194 196 198 200 202 204 207 209 212 214 217 219 228 230 235 237 246 248 249 251 252 253 255 257 261 263 272 273 274 275 23 24 91 92 2 4 9 11 12 14 34 36 44 46...
result:
ok good job!
Test #81:
score: 0
Accepted
time: 2ms
memory: 13824kb
input:
274 934 1112211122121111121221212211111121111211221222212222121222112121212211212111222221121211111221112122221212222212212112222121122221121212212122121112211212111221221112112221222122121212111112221211212122212221122222111111112121211121211212122212221111111121111221212221121221 22221212122111111...
output:
457 3 5 7 9 16 18 26 28 31 33 36 38 39 41 58 60 68 70 73 75 81 83 86 88 93 95 101 103 110 111 112 114 122 123 129 131 136 138 144 146 149 151 154 156 162 164 166 168 184 186 194 196 207 209 214 216 227 229 233 235 246 248 255 257 260 262 268 270 271 273 47 48 71 72 97 98 139 140 1 3 5 7 8 10 14 16 1...
result:
ok good job!
Test #82:
score: 0
Accepted
time: 2ms
memory: 13332kb
input:
230 182 21112111222221222221121121121111212221112112111122212222212111121221211222222212121122112211212211211122221221111111221121222221122112221111111212211121111122121111121212122122211111222211221111222122222222111221112112211221111122 1212122111122212122221212221211212112222122222122211111112211...
output:
286 4 5 8 10 12 14 19 21 22 23 26 28 31 33 39 41 42 44 47 49 62 64 70 72 82 84 85 87 88 90 91 93 96 98 99 101 109 111 118 120 127 129 131 133 136 138 147 149 155 157 171 173 181 183 187 189 194 195 208 210 214 215 216 218 223 225 228 229 1 2 151 152 6 8 11 12 18 20 29 31 33 35 40 42 45 47 48 50 60 6...
result:
ok good job!
Test #83:
score: 0
Accepted
time: 5ms
memory: 14148kb
input:
317 182 2122212211212111112112122222122121121111222211222112122222112112111111121112112111211211222112212111112221112122222222211211121121212121122211211121122211121111212211212222121111212122112122122221112112122122221211121111122112212212122221111222121112212211221121221122211122122212112212211111...
output:
1194 4 6 8 9 10 11 20 22 34 36 39 41 45 47 58 60 77 79 81 83 87 89 93 95 101 103 108 109 120 122 124 126 128 129 132 133 136 138 141 143 145 147 148 150 159 161 165 167 168 169 178 179 185 187 188 190 200 202 206 208 214 216 220 222 224 226 228 230 233 235 241 243 249 251 255 257 259 261 265 267 271...
result:
ok good job!
Test #84:
score: 0
Accepted
time: 2ms
memory: 14308kb
input:
348 517 2221222112221121121122221221111221121112221121121122121112122111121112112111122222221122221111211121221112211112112222222122211211122212112212111211121222121121121121112212122111212122122221221222211122111221212111212111212211222222111111212221211122221121222111211112111111221222122121211112...
output:
743 7 9 12 14 15 17 18 20 27 29 33 35 36 38 42 44 45 47 48 50 54 56 61 63 66 68 70 72 73 75 84 86 90 92 95 97 101 103 107 109 110 112 113 115 125 127 128 130 136 138 142 144 146 148 156 158 159 161 162 164 174 176 197 199 202 204 211 213 217 219 224 226 232 234 245 247 252 254 259 261 263 265 268 27...
result:
ok good job!
Test #85:
score: 0
Accepted
time: 0ms
memory: 12836kb
input:
90 971 111221112211121212221112212221121221122112111221111221121112212221222121121121111221221122 122221212112211122111222111121111221222111112122122112111122121122111112212211121212212222
output:
64 2 4 8 10 12 14 23 25 35 37 42 44 46 48 50 52 54 56 59 61 62 63 64 66 74 76 86 88 71 72 77 78 3 5 6 8 10 12 14 16 21 23 25 27 34 35 44 45 51 53 85 87 69 71 72 74 78 80 4 6 7 9 12 14 16 18 22 24 26 28 32 34 83 85 68 70 71 73 76 78 5 7 8 10 14 16 17 19 23 25 82 84 67 69 70 72 74 76 7 8 10 12 15 17 1...
result:
ok good job!
Test #86:
score: 0
Accepted
time: 3ms
memory: 15072kb
input:
438 523 1112121212111122111121111122112111212111221211221121112122211121221211111222222222221111222122221112122111122121111221111221121112211221222221121211222121222122222121211122212212221211122111222122111222221222112221212212121112122222112221122211111121121221122111222121121111221212212121111211...
output:
1409 2 4 13 15 19 21 26 27 29 31 33 35 36 37 39 41 46 48 49 51 53 55 64 66 73 75 87 89 92 94 98 100 106 108 114 116 120 122 124 126 128 130 132 134 136 138 142 144 147 149 182 184 187 189 196 198 208 210 222 224 232 234 237 239 242 244 249 251 255 257 259 261 267 269 270 272 285 287 290 292 295 297 ...
result:
ok good job!
Test #87:
score: 0
Accepted
time: 2ms
memory: 12916kb
input:
81 478 112121122122121122121111111112212222211112211212212111122111211111112121212212121 122221121212121221112111212112111121111212121112112221121111211222121212122111211
output:
64 2 3 6 8 10 11 16 18 28 30 43 45 57 59 61 63 68 69 70 71 72 73 74 76 37 38 51 52 79 80 3 5 7 9 18 20 26 28 29 31 42 44 56 58 59 61 63 65 66 68 76 78 38 40 49 51 52 54 4 6 8 10 24 26 27 29 31 33 58 60 68 70 36 38 40 42 48 50 51 53 54 56 5 7 10 12 22 24 25 27 29 31 32 34 60 62 70 72 38 40 46 48 50 5...
result:
ok good job!
Test #88:
score: 0
Accepted
time: 3ms
memory: 13212kb
input:
153 157 212111222111222211212221112211211122112111221111111121122211211111222211122122121111221122122121112121122221122121111111211221122121222221121222111222222 122122111122122121211111222211111122211212221211211221121111212222221121221212122221122222112111112212111212112211122112111122211122221111...
output:
263 5 7 9 11 12 13 16 17 23 25 28 30 31 33 36 38 54 56 65 67 72 74 76 78 83 85 88 89 91 93 98 99 102 104 109 111 112 113 120 121 122 124 126 128 132 134 138 140 141 143 147 149 1 2 39 40 6 8 22 24 27 28 30 32 35 37 52 54 56 58 63 65 66 68 73 75 81 83 84 86 93 95 96 98 99 101 103 105 118 120 123 125 ...
result:
ok good job!
Test #89:
score: 0
Accepted
time: 5ms
memory: 14836kb
input:
453 434 2212221211121122211222111221212222221112122122221112112121112111122121121122222221121222112122112122212221222121112121212222122112121122122222211211111111111112111122112212221221211111212112222221122212222211221211121222112212112211112112112211121121122212222112212211122121222112111221211111...
output:
789 8 10 12 14 17 19 22 24 36 38 48 50 52 54 70 72 73 75 81 83 88 90 94 96 127 129 132 134 143 145 146 148 158 160 164 166 167 169 171 173 179 181 195 197 206 208 212 214 220 222 226 228 230 232 235 237 242 244 246 248 249 251 259 261 266 268 277 279 280 282 287 289 298 300 306 308 312 314 326 328 3...
result:
ok good job!
Test #90:
score: 0
Accepted
time: 6ms
memory: 15328kb
input:
496 670 1211121111122111221111221111212212121212221122222212222121212121121121212111221112111112211112221211112121222122211221212222221212121122212222221112111221222222111112121222221111122222112221212212212112222221121211212112212122212222212121121221111222221121221111211111222211111221211212222122...
output:
1102 2 4 10 12 15 17 21 23 27 29 39 41 43 45 66 68 73 75 78 80 82 84 89 91 92 94 98 99 102 103 106 108 113 115 132 134 144 146 148 150 160 162 174 176 184 186 199 201 206 208 212 214 220 222 226 228 237 239 243 245 252 254 258 260 263 265 272 274 281 283 297 299 302 304 307 309 316 318 325 327 334 3...
result:
ok good job!
Test #91:
score: 0
Accepted
time: 2ms
memory: 12692kb
input:
10 526 2221221221 2122221221
output:
1 2 4
result:
ok good job!
Test #92:
score: 0
Accepted
time: 0ms
memory: 13188kb
input:
180 555 221221211211221121121212212222211121122111122212112211122211222212211211221122221112212111212221121211212211122211121121122222111221121122221222211111121222212112222112112121121211 122111122212221122212221111111221112222122111222221121222211211112111211222122221121221112121112111222112222212...
output:
149 1 3 10 12 18 20 23 25 31 33 35 37 39 41 42 44 45 47 49 51 54 56 59 61 67 69 70 72 74 76 79 81 84 86 95 97 100 102 106 108 114 116 117 119 120 122 134 136 145 147 159 161 165 167 168 170 178 180 7 8 87 88 91 92 109 110 131 132 157 158 20 22 25 27 30 32 33 35 37 39 50 52 53 54 55 57 60 62 66 68 69...
result:
ok good job!
Test #93:
score: 0
Accepted
time: 6ms
memory: 15524kb
input:
489 819 2111111211211211121222211221221122121211111212121121111112112122121122222111212112212222212122211211112111121211221121121112212111211121212222121222111111112211112121121212122121212221211111121122212121112111222112211222122211221212121112211122121212112212112221121112112212211121222121221211...
output:
1457 9 11 12 14 16 18 24 26 28 30 32 34 42 44 56 58 59 61 62 64 67 69 75 77 81 83 92 94 96 98 101 103 106 108 111 113 115 117 123 125 129 131 134 135 138 139 145 147 155 157 161 163 166 168 173 175 180 182 190 192 194 196 207 209 212 214 216 218 226 228 237 239 241 243 251 253 257 259 269 271 273 27...
result:
ok good job!
Test #94:
score: 0
Accepted
time: 2ms
memory: 13184kb
input:
167 414 22222122212212121111122212211121121122211212121222112112221211221212222222212112121222222111211222121112112221111122212112111121212222222221122122122111112111222221121 2211211222111221212122222211122212211111221121111221222212221112122111222121121112222121221222122211121211122222221122212211...
output:
178 16 18 23 25 32 34 36 38 39 41 44 45 50 52 53 55 57 59 63 65 77 79 88 90 100 102 104 106 109 111 114 115 116 118 125 127 130 131 139 141 149 151 163 165 27 28 155 156 14 16 18 20 22 23 34 36 49 51 52 54 65 67 75 77 86 88 90 92 98 100 102 104 108 110 111 113 123 125 127 129 138 140 148 150 151 153...
result:
ok good job!
Test #95:
score: 0
Accepted
time: 3ms
memory: 14428kb
input:
374 365 1222211122112221112112222212212111221111221111121212212221111122111222212211121111221211222111112121111221212212211122212212212211212211211111112111121121121122111212221121122121222222221211111222111112211121211122221111122112211211212221121122221112121121122112221111212111211111221111111112...
output:
595 10 11 12 13 36 38 42 44 57 59 63 65 66 68 72 74 81 83 86 88 95 97 102 104 108 109 110 111 116 118 120 122 128 130 134 136 143 145 151 153 157 159 165 167 169 171 173 175 188 189 193 195 201 203 205 207 212 214 220 222 224 226 228 230 231 233 234 236 238 240 242 244 248 250 253 255 256 258 261 26...
result:
ok good job!
Test #96:
score: 0
Accepted
time: 3ms
memory: 15088kb
input:
469 834 1222211111122121211211122121221112112211121212211121112221111112122222111211111112222122111122222221222112121112212212121121121221122212122221121222121212221211122111122121212222112112222111221222212122211121221221222211222122112112211122122221222221112222122112211212122111112112212111221212...
output:
1007 5 7 12 14 17 19 20 21 22 24 26 27 32 34 35 37 45 47 49 51 54 56 62 64 72 74 81 83 91 93 100 102 104 106 110 112 124 126 130 132 142 144 153 155 161 163 167 169 179 181 183 185 189 191 193 195 208 210 211 213 219 221 224 226 227 229 231 233 236 238 239 241 244 246 252 254 260 262 264 266 269 271...
result:
ok good job!
Test #97:
score: 0
Accepted
time: 3ms
memory: 12816kb
input:
52 77 1121111121222122122121212111121121212121112222211112 1121211121111121222121112212212111212222121221111221
output:
32 7 9 18 20 25 27 30 31 42 43 37 38 47 48 51 52 5 7 9 11 16 18 20 22 27 29 40 42 35 37 48 50 15 17 18 20 22 24 42 44 33 35 13 15 20 22 24 26 44 46 12 14 22 24 26 28 14 16 24 26 16 18 23 25
result:
ok good job!
Test #98:
score: 0
Accepted
time: 3ms
memory: 14188kb
input:
334 345 2111211112211221121111211212121122221121222122221211112222221222111111211111111122222212211211111112212211111211211221111111211222112211212111122211121122112212121221111121221211122111211211111222222122121212121111211111112122212212221122111122112112212112212212221221222212222112211121222212...
output:
1168 1 3 4 5 15 17 18 20 24 26 30 32 36 38 50 52 64 66 79 81 90 92 99 101 111 113 115 117 126 128 131 133 135 137 142 144 148 150 152 154 156 158 163 165 172 174 178 180 183 185 186 188 192 194 213 215 221 223 228 230 236 238 241 243 245 247 249 251 254 256 258 260 265 267 268 270 279 281 283 285 30...
result:
ok good job!
Test #99:
score: 0
Accepted
time: 2ms
memory: 14088kb
input:
322 316 1121211111112222221211212112221112211222112211112111111121211212222222222111122211212122121212221212121221212111122221121112122121212111222212221112122221211221112212122111112122112112122112212211212112222111112111222112221111221222121221212212221212111212121221122112212211111122211111221211...
output:
759 1 3 4 5 11 13 17 19 22 23 26 28 30 32 35 37 40 42 43 45 49 51 55 57 60 62 63 65 73 75 80 82 109 111 117 119 120 122 126 128 133 135 144 146 155 157 159 161 169 171 178 180 181 183 187 189 194 196 199 201 205 207 211 213 217 219 222 224 250 252 261 263 265 267 272 274 281 283 290 292 296 298 299 ...
result:
ok good job!
Test #100:
score: 0
Accepted
time: 1ms
memory: 12652kb
input:
28 491 1122122221222111121112122222 2111212121222221121122222121
output:
16 1 3 4 5 13 15 21 22 12 14 22 24 11 13 23 25 9 11 24 26 8 10 25 27 7 9 10 12 27 28 6 7
result:
ok good job!