QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#554122 | #9240. Mosaic | Xun_xiaoyao | 100 ✓ | 276ms | 23540kb | C++14 | 2.1kb | 2024-09-09 07:17:06 | 2024-09-09 07:17:06 |
Judging History
answer
#include <bits/stdc++.h>
#include "mosaic.h"
using namespace std;
int n,Q;
int sX[200010],sY[200010];
int secX[200010],secY[200010];
int thdX[200010],thdY[200010];
int col[400010],top,tk,tk_;
long long sum[400010];
inline long long calc(int X0,int Y0)
{
if(X0>1&&Y0>1)
{
if(Y0>=X0)
{
tk=upper_bound(col+1,col+top+1,X0)-col-1;
return 1ll*tk*X0-sum[tk];
}
else
{
tk=upper_bound(col+1,col+top+1,X0)-col-1;
tk_=upper_bound(col+1,col+top+1,X0-Y0+1)-col-1;
return 1ll*(tk-tk_)*X0-(sum[tk]-sum[tk_])+1ll*tk_*(Y0-1);
}
}else return 0;
}
vector<long long> mosaic(vector<int> X,vector<int> Y,vector<int> T,vector<int> B,vector<int> L,vector<int> R)
{
swap(X,Y);
vector<long long> ans;
n=X.size(),Q=T.size();
ans.resize(Q);
secX[1]=secY[1]=!(X[1]|Y[1]);
for(int i=2;i<n;i++) secX[i]=!(secX[i-1]|X[i]);
for(int i=2;i<n;i++) secY[i]=!(secY[i-1]|Y[i]);
thdX[2]=thdY[2]=!(secX[2]|secY[2]);
for(int i=3;i<n;i++) thdX[i]=!(thdX[i-1]|secX[i]);
for(int i=3;i<n;i++) thdY[i]=!(thdY[i-1]|secY[i]);
for(int i=2;i<n;i++) if(thdX[i]) col[++top]=i-1;
for(int i=1;i<=top;i++) sum[i]=sum[i-1]+col[i];
for(int i=0;i<Q;i++)
{
ans[i]+=calc(B[i],R[i]);
ans[i]-=calc(T[i]-1,R[i]);
ans[i]-=calc(B[i],L[i]-1);
ans[i]+=calc(T[i]-1,L[i]-1);
}
top=0;
for(int i=3;i<n;i++) if(thdY[i]) col[++top]=i-1;
for(int i=1;i<=top;i++) sum[i]=sum[i-1]+col[i];
for(int i=0;i<Q;i++)
{
ans[i]+=calc(R[i],B[i]);
ans[i]-=calc(R[i],T[i]-1);
ans[i]-=calc(L[i]-1,B[i]);
ans[i]+=calc(L[i]-1,T[i]-1);
}
sX[0]=X[0];
for(int i=1;i<n;i++)
sX[i]=X[i]+sX[i-1],sY[i]=Y[i]+sY[i-1];
for(int i=0;i<Q;i++)
{
if(!L[i])
{
ans[i]+=sX[B[i]];
if(T[i]) ans[i]-=sX[T[i]-1];
}
if(!T[i])
{
ans[i]+=sY[R[i]];
if(L[i]) ans[i]-=sY[L[i]-1];
}
}
secY[1]=0;
sX[0]=sY[0]=0;
for(int i=1;i<n;i++)
sX[i]=sX[i-1]+secX[i],sY[i]=sY[i-1]+secY[i];
for(int i=0;i<Q;i++)
{
if(L[i]<=1&&R[i]>=1)
{
ans[i]+=sX[B[i]];
if(T[i]) ans[i]-=sX[T[i]-1];
}
if(T[i]<=1&&B[i]>=1)
{
ans[i]+=sY[R[i]];
if(L[i]) ans[i]-=sY[L[i]-1];
}
}
return ans;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms
memory: 7888kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 1 0 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 0 0 0 0 0 0 0 0 0 0
result:
ok
Test #2:
score: 5
Accepted
time: 1ms
memory: 7888kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 1 1 1 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1 1 1 1 1 1 1 1 1 1
result:
ok
Test #3:
score: 5
Accepted
time: 1ms
memory: 7912kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 2 1 0 1 0 10 1 1 0 1 1 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 1 1 0 0 0 1 0 1 0 1 1 1 1 1 0 1 0 0 0 1
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1 1 1 2 2 0 2 1 1 1
result:
ok
Test #4:
score: 5
Accepted
time: 1ms
memory: 8176kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 2 1 0 1 0 10 0 1 1 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 0 0 0 1 0 1 0 0 1 1 0 0
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1 2 1 1 2 1 1 1 1 0
result:
ok
Test #5:
score: 5
Accepted
time: 0ms
memory: 7912kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 2 0 1 0 0 10 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 1 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 0 1 0 0 0 0 1 1 1 1
result:
ok
Test #6:
score: 5
Accepted
time: 0ms
memory: 8176kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 2 1 1 1 0 10 0 0 0 1 0 0 0 1 1 1 0 1 0 1 0 1 0 1 0 0 0 1 1 1 1 1 0 1 0 0 1 1 0 1 0 0 0 1 0 0
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 2 2 0 2 1 1 0 1 1 1
result:
ok
Test #7:
score: 5
Accepted
time: 0ms
memory: 8180kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 2 0 0 0 1 10 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 0 1 1 0 0 0 1 0 1 0 0 1 1 0 1 1 1 0 1
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 0 1 1 1 0 0 0 1 1 1
result:
ok
Test #8:
score: 5
Accepted
time: 1ms
memory: 7880kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 2 1 0 1 1 10 0 1 0 0 1 1 0 1 0 0 0 1 1 1 1 1 1 1 0 0 0 1 1 1 0 1 0 0 0 0 1 1 1 1 0 1 0 1 0 1
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 2 1 1 0 1 0 2 0 1 2
result:
ok
Test #9:
score: 5
Accepted
time: 1ms
memory: 7976kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 2 0 1 0 1 10 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 1 0 1
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 2 2 0 2 1 2 1 0 1 2
result:
ok
Test #10:
score: 5
Accepted
time: 1ms
memory: 7908kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 2 1 1 1 1 10 0 0 0 1 0 1 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 1 1
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 2 2 2 3 1 3 3 1 3 0
result:
ok
Subtask #2:
score: 7
Accepted
Dependency #1:
100%
Accepted
Test #11:
score: 7
Accepted
time: 1ms
memory: 7916kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 199 0 0 1 0 0 1 0 0 0 1 0 0 1 1 1 0 1 0 1 1 1 1 0 1 0 1 1 1 0 0 1 1 0 1 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 1 1 0 1 1 0 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 1 1 1 0 0 0 1 1 1 0 0 1 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 0 0 0 1...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1078 5062 897 428 10378 1260 1733 4327 697 1864 34 430 709 5682 5295 625 39 10 196 416 3048 87 4065 49 1368 1220 80 1440 1083 5053 5561 2680 56 2539 1107 57 3705 1996 327 2789 432 1542 571 1643 756 5253 1931 1934 245 3545 2026 4364 935 1506 1992 1815 75 9847 1279 ...
result:
ok
Test #12:
score: 7
Accepted
time: 1ms
memory: 7928kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200 1 1 1 1 1 0 1 0 0 0 0 1 0 1 1 1 1 0 0 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 0 1 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 0 0 1 0 0 1 0 0 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 0 1 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 0 1 1 0 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 0 0 0 1 1 1 1 1 0 1 1 0 1 1 1 0 0 1 1...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 3769 339 45 1631 13942 12533 2707 3153 945 4842 2223 5488 1671 2091 557 4839 3455 3211 2621 5391 7299 2789 757 2455 2546 713 9014 2772 1901 3239 1974 2740 6109 1088 5177 958 240 296 2539 517 1889 1345 1467 4590 1944 7950 2623 7550 3121 3184 2851 1237 1233 4601 356...
result:
ok
Test #13:
score: 7
Accepted
time: 2ms
memory: 9952kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200 0 0 1 1 0 1 1 0 1 1 1 0 1 0 1 1 0 1 0 0 1 1 0 0 0 0 0 1 1 1 1 1 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 1 0 1 0 0 1 1 1 0 1 1 0 0 1 1 1 1 1 1 0 0 1 1 0 1 0 1 0 0 1 0 0 0 0 1 0 1 1 0 1 0 0 0 1 0 1 1 0 0 0 1 1 1 1 1 0 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 1 0 1 0 1 1 1 1 0 1 0 1...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 399 1631 42 3980 131 6488 1333 596 2143 10675 396 3779 8731 4904 883 4840 5180 8077 1241 5867 323 11414 158 11432 6296 3329 8996 1795 1219 4201 1308 4965 89 4184 5672 13700 1008 8644 6885 3282 2118 2533 5752 738 64 1456 6079 7179 9318 10003 1762 5081 2469 3192 247...
result:
ok
Test #14:
score: 7
Accepted
time: 1ms
memory: 8184kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200 1 0 1 1 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 1 1 0 1 1 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 0 1 1 1 0 0 1 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1772 8342 7792 8906 6572 8559 11629 9114 11352 2252 4844 11182 9524 8174 12471 13142 12557 8370 5294 10699 2601 10538 10432 4778 7121 9615 8315 10534 7944 6386 14210 1448 9460 5293 6503 15236 10545 13422 6012 9768 4170 12675 12870 6104 5791 11519 10269 10816 12527...
result:
ok
Test #15:
score: 7
Accepted
time: 1ms
memory: 7980kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 91 0 0 0 1 1 1 0 0 0 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 0 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0 1 0 0 1 1 1 0 0 0 0 0 1 1 0 0 1 1 1 1 1 0 0 1 1 0 0 0 0 0 0 0 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 328 660 9 31 11 164 253 57 87 1187 47 21 203 350 1136 378 2539 607 241 387 218 1633 355 1980 94 1739 184 308 264 338 775 1368 70 242 592 72 78 56 144 556 191 1762 24 1074 399 626 635 2281 280 15 38 613 479 82 114 702 2112 1082 553 446 49 1819 164 240 288 49 326 18...
result:
ok
Test #16:
score: 7
Accepted
time: 0ms
memory: 10216kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 92 1 1 1 1 1 0 1 0 0 1 1 1 0 0 1 1 1 1 0 1 0 0 1 0 1 1 0 1 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 0 0 0 1 0 0 1 1 0 0 1 1 1 0 1 1 1 1 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 1 0 0 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 0 1 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1 19 12 15 25 0 1 1 11 18 8 38 1 13 23 30 3 2 34 6 5 3 3 19 27 16 15 2 2 24 1 3 34 4 13 2 34 4 22 16 6 20 23 35 17 7 25 14 9 23 40 13 23 5 24 17 7 0 1 19 6 17 33 15 31 14 20 36 17 19 25 5 26 3 21 9 2 11 39 38 1 9 6 6 11 2 3 21 15 0 13 11 2 11 4 4 0 2 34 37 4 2 9 1...
result:
ok
Test #17:
score: 7
Accepted
time: 1ms
memory: 7924kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 93 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 1 0 1 0 1 0 0 1 0 1 0 0 1 0 0 0 1 0 0 1 1 1 0 1 0 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 14 11 11 6 6 0 8 11 18 28 15 1 0 6 27 12 18 14 7 3 32 13 40 1 21 15 2 24 7 4 20 14 14 6 5 3 9 32 6 5 20 13 3 22 42 21 19 31 21 11 1 11 10 6 22 19 7 16 12 2 9 21 17 9 13 16 41 25 31 36 17 3 10 13 0 3 12 24 18 5 9 30 33 0 40 16 40 14 3 3 21 8 1 38 25 25 1 30 43 24 3...
result:
ok
Subtask #3:
score: 7
Accepted
Test #18:
score: 7
Accepted
time: 68ms
memory: 21216kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 199999 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 1 0 1 1 0 1 1 1 0 1 0 0 1 1 0 1 1 0 0 0 1 1 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 1 0 1 1 1 1 1 0 0 0 1 0 0 0 0 1 0 0 0 1 1 1 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1 1 1 0 1 0 1 1 0 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1314 79312 13238 63518 27135 86532 21129 53105 14461 13920 65981 66950 13385 23885 37091 56646 69855 64947 74166 41759 50738 1366 65318 58452 24337 58380 29379 59258 39016 4990 60529 23351 60370 12835 25686 8151 17007 56172 10913 7224 30221 73673 55593 33643 44070...
result:
ok
Test #19:
score: 7
Accepted
time: 66ms
memory: 21264kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 199999 0 1 1 0 0 1 1 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 1 1 1 1 1 1 1 0 1 1 0 0 1 1 1 1 0 0 1 1 0 1 1 1 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 97288 84412 98958 98546 95894 91536 99791 94852 96879 98784 94005 99030 95916 90829 96593 96545 90518 95251 93882 95122 94925 96009 98788 98866 95996 97263 95422 95733 96576 97730 98106 96939 94030 94576 94019 92982 96921 95715 96639 93579 97372 97983 95123 95211 ...
result:
ok
Test #20:
score: 7
Accepted
time: 47ms
memory: 20772kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 1 0 0 1 0 0 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 0 1 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 0 0 0 0 0 1 1 0 1 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 0 0 0 1 1 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 1 0 1 1 0 0 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 63186 59869 80378 71302 94439 63006 84372 99459 21243 54879 86436 65742 94261 35276 55849 93734 72881 49090 34951 93280 90257 58145 84070 58055 95069 56733 82475 51301 59357 39555 95572 87255 37523 68017 80309 52815 95469 29140 85700 46052 56013 71305 90947 7434 6...
result:
ok
Test #21:
score: 7
Accepted
time: 59ms
memory: 21980kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 1 0 0 0 1 1 0 1 0 1 1 0 0 0 0 1 1 0 0 1 1 1 0 0 0 0 1 1 1 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 1 0 1 1 0 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 0 1 0 1 1 1 0 0 1 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 99156 96398 98499 93058 98359 93547 93120 98997 99065 97926 99050 95046 96687 98137 97249 97530 96983 98126 89892 94397 98111 96471 95754 99320 97511 95029 96780 93937 97095 97566 97024 99338 97729 99722 97152 98216 95895 97942 98980 99845 96992 97397 99255 97894 ...
result:
ok
Test #22:
score: 7
Accepted
time: 52ms
memory: 19516kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 100000 0 0 1 1 0 1 1 0 0 0 0 1 1 0 0 1 0 0 0 1 0 1 0 1 1 0 0 0 0 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 0 0 1 1 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1 1 1 0 1 1 1 0 1 1 1 0 1 0 0 0 1 0 1 1 0 1 0 1 1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 1 1 0 1 1 1 0 1 0 1 1 1 0 1 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 34862 31357 15637 16893 7670 123 17919 20936 7467 18723 34082 1835 18668 23866 630 26206 40304 6217 25617 18490 11507 39163 5570 16345 4695 30449 15992 13307 5315 5393 8864 29876 34139 3227 28910 11628 2250 38538 12586 299 1066 8238 40627 7418 7600 3123 18111 9012...
result:
ok
Subtask #4:
score: 10
Accepted
Dependency #2:
100%
Accepted
Test #23:
score: 10
Accepted
time: 180ms
memory: 17416kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 4999 0 0 0 0 0 0 0 1 0 0 1 1 1 0 0 0 0 0 1 0 0 1 1 1 0 0 1 1 1 1 1 1 0 0 0 1 0 0 0 1 1 1 0 0 0 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 0 1 1 0 0 0 0 1 0 0 0 1 0 1 1 0 1 1 1 1 1 1 0 1 1 0 0 0 1 0 0 1 1 1 1 1 0 0 1 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 0 0 0 0 0 1 1 0 0 1 1 0 1 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 2278926 2517585 309065 4439658 1312823 821454 21990 581613 1026882 3363680 19119 1634704 1051362 411650 3744121 1673259 47991 3124029 4777205 1572654 346149 756243 667860 189909 46711 2233488 2152180 1532708 2864350 362090 1318591 588226 1603317 289790 2613561 424...
result:
ok
Test #24:
score: 10
Accepted
time: 162ms
memory: 15328kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 5000 0 0 1 1 1 1 0 0 1 1 1 0 1 0 1 1 0 0 0 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 1 1 0 0 0 1 1 0 0 1 1 1 1 1 0 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 0 1 1 0 1 1 1 0 1 1 0 0 1 0 0 1 1 0 1 0 1 1 0 1 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 1 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 8718592 6487692 5327896 6806369 3889797 6922431 4076090 6071121 1384604 7292223 4542346 3143893 6961152 1655273 5760268 6103898 6286591 6595898 5501571 4623965 4442169 9536381 3685258 3467391 7297530 5793665 2615556 7070456 3647815 4767368 5199720 5672600 3536405 ...
result:
ok
Test #25:
score: 10
Accepted
time: 146ms
memory: 15392kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 5000 1 0 0 1 1 0 0 0 1 0 1 1 1 1 0 1 1 0 0 1 1 1 1 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1 0 0 1 1 1 1 0 0 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0 0 0 1 0 1 0 0 1 1 0 1 1 0 0 0 0 1 0 1 1 1 0 1 0 0 0 1 0 1 1 1 0 0 1 1 1 0 0 1 0 0 0 1 0 0 0 0 0 1 1 1 1 0 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 9795619 8280458 9814435 10089381 9428670 9774896 9185142 8799125 10155539 8654541 10565960 9712016 10182331 9782562 10426219 10073906 10570209 9883019 10673106 9723716 7911680 9537211 7947455 9294499 10039646 10128953 8082449 8718285 9752407 8363640 8867665 971349...
result:
ok
Test #26:
score: 10
Accepted
time: 145ms
memory: 15596kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 5000 0 1 0 1 1 0 1 0 1 0 0 0 1 1 1 1 0 1 0 1 1 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 1 0 1 0 0 0 0 0 0 1 0 1 1 0 1 0 1 0 0 1 1 1 1 0 0 0 0 1 1 0 1 1 0 0 0 0 1 0 0 0 1 1 1 0 1 0 1 1 1 1 0 0 1 1 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 1 1 1 1 0 1 1 0 1 1 0 1 0 0 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 8176794 3805736 7843206 6223419 3974233 6804027 3139743 754456 4100610 6320426 412152 3003839 4724998 5115503 3852043 5640917 2092454 5117076 6370288 4167729 5394619 8494838 1749439 7179842 4738995 8175556 6415667 3066949 1854704 4701147 6447006 3231105 862292 632...
result:
ok
Test #27:
score: 10
Accepted
time: 149ms
memory: 15312kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 5000 0 0 0 0 0 1 1 0 0 1 1 1 1 0 1 1 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 0 1 1 0 0 0 0 1 0 1 0 0 1 0 1 0 0 1 0 0 0 0 1 1 0 1 0 1 1 0 0 0 0 1 1 1 0 0 0 0 0 1 0 0 1 1 0 0 1 0 0 1 1 0 1 0 0 1 0 0 1 1 0 0 0 0 1 1 1 0 1 0 1 1 0 1 1 1 0 1 1 0 0 0 0 0 1 0 1 0 1 0 0 0 0 1 0 0 1 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 3209247 6331506 3594742 3473116 4578375 9096686 1911947 6479981 2665381 6381371 3738557 5887688 2826827 7210287 1408532 8283195 3803855 3673089 3346344 6107496 3463520 585746 8333850 4213642 3841860 2282635 3760397 9086350 825886 8518064 1338167 463047 7019383 508...
result:
ok
Test #28:
score: 10
Accepted
time: 144ms
memory: 15164kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 1967 0 1 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 1 1 0 0 1 0 0 0 1 1 1 1 1 1 1 0 1 1 1 0 0 1 0 0 0 1 0 1 0 1 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 1 0 1 1 0 0 1 0 1 0 0 0 1 0 0 0 0 1 1 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 72924 2184 18058 858965 141401 14446 228152 18369 27571 116533 37944 34839 192300 391628 1015 69309 595 19610 53778 99278 5598 316920 108444 628498 128019 2454 20516 93143 122215 101083 47074 573393 210210 25067 108050 7665 751098 288235 63231 534143 1285 558114 1...
result:
ok
Test #29:
score: 10
Accepted
time: 136ms
memory: 15108kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 1968 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 0 1 1 1 0 1 0 1 1 0 0 0 0 1 0 1 0 1 1 1 0 0 1 1 1 0 1 0 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 0 1 1 0 0 1 0 0 1 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 366 733 592 170 317 96 6 57 503 27 406 146 205 37 272 243 530 245 540 118 346 459 795 382 466 732 560 663 127 554 237 566 134 133 675 514 352 315 73 186 583 282 412 37 320 658 374 538 42 299 408 644 362 313 142 181 415 389 753 1 149 673 808 272 344 237 600 516 435...
result:
ok
Test #30:
score: 10
Accepted
time: 134ms
memory: 15244kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 1969 1 1 1 1 0 1 1 0 0 0 1 1 1 1 0 0 1 1 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 0 0 1 0 0 0 1 0 0 1 0 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 0 1 1 0 0 0 0 0 1 0 0 0 0 1 1 1 1 0 0 0 1 1 0 1 0 0 0 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 8 251 66 428 625 796 587 11 743 573 565 187 16 46 449 333 354 515 67 107 142 572 299 498 137 862 25 524 542 546 461 267 679 75 531 825 377 368 367 377 1 856 343 215 24 51 410 112 117 357 636 13 82 481 380 177 151 551 386 832 5 807 781 757 152 194 768 678 685 2 792...
result:
ok
Subtask #5:
score: 8
Accepted
Test #31:
score: 8
Accepted
time: 54ms
memory: 15348kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 200000 1 7 0 4 3 4 3 4 3 6 2 5 4 5 6 7 5 7 2 8 0 6 4 7 0 5 6 7 1 3 9 9 6 9 1 7 2 9 4 6 4 4 6 7 0 1 8 8 7 7 0 3 0 4 1 7 2 2 0 9 3 9 4 6 3 9 0 9 1 8 4 6 4 5 5 7 0 6 2 3 2 3 0 6 1 9 8 8 2 4 3 4 3 6 2 9 3 9 2 7 1 3 0 3 0 8 2 4 3...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 14 2 8 2 10 12 5 2 14 12 1 0 2 14 4 10 32 12 3 6 6 4 3 16 21 5 12 6 7 11 12 3 7 3 6 15 6 4 6 8 15 24 2 5 11 8 16 3 4 12 4 9 23 1 2 5 6 4 1 4 4 3 6 4 18 32 10 2 7 7 5 12 11 7 4 4 10 6 4 16 8 13 8 3 3 8 21 1 2 3 6 14 21 14 9 2 3 2 4 16 20 7 3 5 3 15 16 8 36 7 6 7 9 ...
result:
ok
Test #32:
score: 8
Accepted
time: 276ms
memory: 21368kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 199999 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 8120124544 2752273618 652362120 3572900496 7229702005 8480641653 6918084280 1267958106 904477638 1997350413 7012230475 1362860576 163899948 797037988 656632144 5591112615 3071773904 8768430125 4850111320 8165741606 1554651170 1797902728 374751575 9903806946 519998...
result:
ok
Test #33:
score: 8
Accepted
time: 226ms
memory: 23500kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 3570040188 3318070798 8631503328 6373540329 560572082 812170996 10132940228 7734369045 4291788438 3990792526 1508274527 7435250506 2410810420 3929002587 42412734 6175343964 6651965200 2985906307 6315888787 2227135547 1138686010 1352599425 9555034480 3719516836 628...
result:
ok
Test #34:
score: 8
Accepted
time: 220ms
memory: 21144kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 8939395244 5011877325 5286271590 3547238661 1654885646 6828788960 7469464650 9466465932 2748117410 4821162993 4386747068 4915799951 6338256240 7006606360 926836202 4330330051 10546142155 1947719980 7361580008 8746762352 5915138727 3714331376 5484402315 994826472 3...
result:
ok
Test #35:
score: 8
Accepted
time: 211ms
memory: 21168kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 17867548576 18831450652 18568769765 18418076073 18083693541 18642130474 19355431583 19687992009 19238003647 17914499413 19139947528 17637142200 18884367608 18644294448 17842030367 18917685664 19248869678 19036530786 19767756709 17491804815 18904101040 19707370743 ...
result:
ok
Test #36:
score: 8
Accepted
time: 254ms
memory: 21440kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 54437 85099 9025 478 80531 40258 44834 52441 16506 17580 4212 21659 15640 60835 54010 13898 19813 62442 60518 48299 30311 33628 14703 81460 47178 77318 79090 65157 29874 20280 1180 32387 46550 10247 1394 53896 32646 18652 20801 60481 26878 22939 43360 12518 79936 ...
result:
ok
Test #37:
score: 8
Accepted
time: 255ms
memory: 21192kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 56771 25325 7855 21931 24973 59779 33690 25827 2776 20450 35766 9160 11668 19064 11173 18942 12789 21937 21038 34391 7307 41750 38340 1093 46005 8066 64096 10836 68912 80515 66710 36919 19763 48176 26284 57483 32392 2767 44232 26264 21828 6813 4790 9045 3159 59984...
result:
ok
Test #38:
score: 8
Accepted
time: 247ms
memory: 22088kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1 0 0 1 0 0 1 1 1 0 1 1 1 0 0 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 0 1 1 1 1 1 1 0 1 1 1 0 1 1 1 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 0 0 1 0 0 0 0 0 1 1 0 1 0 1 1 1 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 1 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 ...
result:
ok
Test #39:
score: 8
Accepted
time: 214ms
memory: 17976kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 98765 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 195956880 1830794238 1889160424 1032014556 478191700 450315684 1043245247 954601965 68607854 603979719 1490902898 349128672 205584813 116639600 11407164 1901396104 120888461 405500 899118801 174394653 330868120 9886483 2821124 3339594272 1134585185 1258395206 1355...
result:
ok
Test #40:
score: 8
Accepted
time: 202ms
memory: 19252kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 98766 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 6440 2345 4590 20700 10149 11283 8424 30492 6389 780 497 18532 12369 7957 3170 22342 1661 16938 12367 17157 6023 15490 4532 36620 2828 36537 17 13999 34684 5578 2607 30996 37713 14449 35052 5018 25651 920 33278 1828 670 1869 31741 3808 15194 16928 24243 20543 4674...
result:
ok
Test #41:
score: 8
Accepted
time: 203ms
memory: 18096kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 98767 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 6498 40272 36086 28355 8581 10712 1320 892 44484 30974 18413 4468 7242 6865 34674 10610 30880 25271 15473 32318 2661 4696 40933 184 30368 859 17757 9642 7022 8828 8238 43635 4288 45250 18534 45379 38408 3516 30831 23813 5954 39034 4063 27599 7650 11519 9806 24529 ...
result:
ok
Subtask #6:
score: 22
Accepted
Test #42:
score: 22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1 1 1 0 0 0 0 1 1 1 1 0 0 0 1 1 1 0 0 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 0 1 0 1 1 1 0 0 1 0 0 0 0 1 0 0 1 0 1 1 0 1 1 1 0 0 1 0...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1 1 1 0 0 1 1 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 1 0 1 1 1 1 0 0 1 1 0 0 0 0 1 0 1 0 0 1 0 1 1 1 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 1 1 1 0 1 1 1 1 1 0 0 0 0 0 0 0 1 0 0 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1 0 1 0 1 1 1 1 0 1 0 0 0 1 0 1 0 ...
result:
ok
Subtask #7:
score: 19
Accepted
Dependency #3:
100%
Accepted
Dependency #6:
100%
Accepted
Test #49:
score: 19
Accepted
time: 256ms
memory: 21256kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 199999 0 1 0 0 1 0 1 0 0 0 0 0 0 1 1 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 1 1 1 0 0 1 0 0 1 1 0 0 1 0 0 0 1 1 1 0 1 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 0 0 0 1 0 1 1 0 0 1 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 18642 43085 807 16661 65633 4632 16010 20875 38918 15470 29422 43295 42393 61542 10162 10030 46043 14955 8007 20636 68830 57647 4057 42186 6039 80219 7909 27058 29935 77132 61178 30352 30844 20425 25932 26424 25690 21559 13956 2222 32971 19862 9888 66060 41247 323...
result:
ok
Test #50:
score: 19
Accepted
time: 210ms
memory: 20880kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 199999 1 0 0 1 1 1 1 0 1 0 0 0 1 0 0 1 0 1 1 1 1 0 0 1 0 1 1 0 0 0 1 1 1 0 0 1 0 1 1 1 1 0 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 1 1 1 1 0 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1 1 0 0 0 1 0 1 1 0 0 1 0 0 1 1 0 0 1 1 1 1 1 0 0 1 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 1 1 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 87376 86803 86118 84553 87495 86804 87498 87313 86429 88452 81570 87754 82534 87256 82911 84586 85846 84734 84759 88245 84518 87212 86535 85967 86637 86544 83268 86912 88378 77539 88553 85126 85723 84222 85844 86209 83887 84168 80055 86393 83398 87596 80981 81550 ...
result:
ok
Test #51:
score: 19
Accepted
time: 238ms
memory: 20760kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 1 1 1 1 1 1 0 1 0 0 1 1 0 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0 1 1 1 1 0 1 0 0 1 0 1 0 1 1 1 0 1 1 1 1 1 1 0 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 1 1 0 1 0 0 0 1 0 1 1 0 1 0 0 1 0 0 1 0 1 1 0 1 1 1 1 1 1 1 0 1 0 1 0 1 1 1 1 1 0 0 1 1 0 0 0 1 1 1 0 1 0 0 1 1 0 1 1 1 0 0 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 56483 54443 62416 55600 57075 64353 55513 43709 71079 71596 79003 62843 52840 71160 81004 70961 58087 65108 63701 82994 46074 59171 73114 50185 62193 63803 64123 60662 51951 64790 86861 81166 78869 65322 57667 35383 66810 48081 71163 58917 77956 70462 73696 80931 ...
result:
ok
Test #52:
score: 19
Accepted
time: 175ms
memory: 21200kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 1 1 1 0 1 1 0 1 1 1 0 1 0 0 1 1 1 1 1 1 0 0 1 0 0 0 0 0 0 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 1 0 0 0 0 1 0 1 0 0 1 0 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 1 0 1 1 0 0 0 0 0 0 0 1 1 1 0 1 1 1 1 1 1 1 0 1 1 0 1 1 0 0 1 0 0 0 0 0 0 1 0 1 1 1 0 0 1 1 1 1 1 0 1 0 1 0 0 0 0 0 1 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 12013 67906 33104 45225 19731 88837 27945 66811 57078 66968 15630 56479 20842 59995 51482 61617 55895 27266 56624 57840 74656 73811 39510 69990 46073 78706 61122 64266 63648 30845 21366 45923 72122 62199 83313 32301 75818 54842 19329 23057 26320 51234 59387 79823 ...
result:
ok
Test #53:
score: 19
Accepted
time: 204ms
memory: 20440kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 1 0 0 1 1 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 0 0 0 1 1 0 1 1 0 1 0 1 1 1 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 0 0 1 0 1 1 0 0 0 1 1 0 0 0 1 0 0 0 0 0 1 1 0 1 0 1 1 0 0 0 1 1 1 0 1 0 0 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 1 1 0 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 88921 52503 79776 66130 74348 46898 83918 70686 59571 87435 82183 84508 78296 29372 74592 87137 22558 74493 72103 55667 33953 86642 80908 81075 81933 37405 67038 85172 75796 80193 60585 65237 78815 76205 75139 74446 83842 82147 65899 79931 86343 60295 80764 75743 ...
result:
ok
Test #54:
score: 19
Accepted
time: 203ms
memory: 21364kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 1 0 0 1 1 1 1 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 1 0 1 1 1 0 0 1 0 1 1 1 1 0 1 1 0 0 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 0 0 1 1 0 0 1 0 1 0 1 1 1 0 1 0 1 1 0 0 0 0 0 0 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0 1 0 1 1 1 0 0 0 1 0 0 1 0 1 1 0 1 0 0 0 1 1 1 0 1 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 84575 86159 84755 79795 82290 80411 86087 83072 87011 86450 88339 88572 86988 86496 87041 86683 88035 84774 86472 87357 84811 85567 87112 84727 85994 82309 83090 86876 86202 82226 86415 86374 85551 85113 82353 83868 84747 83904 83916 85333 85892 86184 88019 87523 ...
result:
ok
Test #55:
score: 19
Accepted
time: 187ms
memory: 17196kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 77777 1 0 1 1 0 0 1 0 1 1 1 0 0 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 1 1 0 0 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1 0 1 0 1 0 0 0 1 1 0 0 1 0 0 0 1 1 0 0 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1 0 0 1 0 0 1 0 1 1 1 0 1 1 1 1 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 14336 9331 10968 19 4704 3693 823 10264 1409 18472 23841 24495 8271 6767 13320 163 31231 3131 15774 10750 21689 20315 2042 17553 30667 3977 15362 33474 22621 128 23142 17215 1056 3099 25441 3129 19200 4876 6123 3500 1816 1836 4822 20826 8526 526 455 18032 1701 127...
result:
ok
Subtask #8:
score: 22
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Dependency #5:
100%
Accepted
Dependency #6:
100%
Accepted
Dependency #7:
100%
Accepted
Test #56:
score: 22
Accepted
time: 270ms
memory: 20892kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 199999 1 1 0 1 0 1 0 0 1 0 1 1 1 1 0 1 1 1 1 0 1 0 0 1 1 1 1 0 0 1 0 1 0 0 1 1 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1 1 0 0 1 0 0 1 0 1 1 1 1 0 1 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 0 1 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 1 1 0 0 1 1 0 1 1 0 1 1 1 1 1 0 0 1 0 1 0 1 1 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 4804389224 479183344 141716869 19811315 3329744269 418342912 1464501809 8155048974 836365062 3157214547 192897962 33578650 2532891765 418829082 602430337 120055233 470381605 9780283671 3412384354 2643183764 3244419017 7756920997 1226247661 1087229589 658934181 135...
result:
ok
Test #57:
score: 22
Accepted
time: 218ms
memory: 20740kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 199999 0 1 0 1 1 0 0 1 0 0 0 1 1 1 1 0 1 1 1 1 0 1 1 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 1 0 0 0 0 1 1 0 1 1 1 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 1 1 1 1 0 0 0 1 0 0 1 1 1 0 1 1 1 0 1 0 1 0 0 1 1 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 1 0 1 0 1 1 1 0 0 0 1 0 1 0 0 0 1 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 16705169745 15824231268 16679290192 16931415645 15679857153 16497351122 16518939576 16701816053 17005977033 15504281862 16577760122 16007455009 16788332385 16280220442 16190920933 15952577487 16116281227 17252924997 16779902482 16404498026 16685055900 16447034084 ...
result:
ok
Test #58:
score: 22
Accepted
time: 255ms
memory: 20768kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 1 1 0 1 0 1 1 1 0 0 0 1 1 1 0 0 1 0 0 1 0 0 1 0 0 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 0 1 0 1 1 1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 1 1 1 1 0 1 1 0 0 0 1 1 1 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 0 0 0 0 1 1 0 0 1 1 1 0 0 0 0 1 1 1 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 3724318319 11652891300 3509223730 289086777 5013184296 7472240592 1156089656 4936110020 8913304189 6676517877 4656171872 5889461159 3425225338 926935695 12460197399 4007172056 6805731513 7955583673 11168085964 5686125328 8057410637 4562231426 10789628601 550001835...
result:
ok
Test #59:
score: 22
Accepted
time: 211ms
memory: 21344kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 0 0 0 0 0 1 0 1 0 1 1 0 1 1 0 1 1 1 1 0 0 1 0 0 0 1 1 1 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0 1 1 1 0 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 1 1 1 0 1 1 0 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 1 1 0 1 0 0 1 1 0 0 1 1 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 8651260087 13674326183 2868722980 13348867770 10713599323 7208809199 8495807219 2700032532 13002261695 13408138841 2408824477 9650709251 15149293472 11427814503 6882382432 3368618190 13124411457 11648855907 3423498731 13596466959 2384501373 10809459402 8070824332 ...
result:
ok
Test #60:
score: 22
Accepted
time: 220ms
memory: 21960kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 1 1 0 0 1 0 0 1 1 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 0 0 1 1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 0 1 0 1 1 0 0 0 0 1 1 0 0 1 1 0 1 1 0 0 0 1 0 0 0 1 1 1 1 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 1 1 1 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 13222057008 12991752453 7148562571 10463111368 7562789189 10537351035 9686668128 5319267629 5764221999 10146195086 4271399383 8971982342 4232093655 5938929887 12841369261 2739920376 8818583142 9061697690 3277393965 12618816998 3586337779 8725491203 9968767851 3869...
result:
ok
Test #61:
score: 22
Accepted
time: 221ms
memory: 20992kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 200000 0 1 0 1 0 0 1 1 1 1 1 1 0 1 0 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 0 0 0 1 0 1 0 1 0 1 1 0 1 0 1 1 1 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 1 1 0 0 1 0 0 0 1 0 1 1 0 1 1 0 0 1 0 1 1 0 0 1 0 1 1 1 0 1 1 1 0 0 1 0 1 0 0 1 0 1 0 1 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 16463505203 16922491403 16264395911 16669108163 16135519477 16591004048 16450871292 16394812735 17050140791 15947153254 16793154479 16863761728 17193204689 15593486651 17013814928 16825199299 15654342349 16371338758 15767343129 14149525167 16449303607 15931842959 ...
result:
ok
Test #62:
score: 22
Accepted
time: 215ms
memory: 17996kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 100000 1 0 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 0 0 1 0 1 1 1 0 1 0 1 1 0 0 1 0 0 0 0 0 1 1 1 1 1 0 0 1 0 0 1 0 0 0 1 0 1 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 0 1 0 1 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 0 1 1 ...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 1082396658 259923589 365429250 21450099 34591567 516257009 737454330 398188014 5703851 264741197 1340771 927809700 50764919 2233958403 138913125 388826104 174391033 215332943 45653969 600198304 38789334 161997376 2092329434 1018293367 13189613 604793235 8606946 71...
result:
ok
Test #63:
score: 22
Accepted
time: 202ms
memory: 16772kb
input:
njJ9Z7VxxKGR6SUcJMgdzy3qMz4JZ1Tq 51235 1 1 0 1 0 0 1 0 0 1 0 1 1 0 0 1 0 0 0 1 0 0 1 1 1 0 0 0 0 1 0 1 1 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 1 0 0 1 0 0 1 0 0 1 0 0 1 1 1 1 0 0 0 0 1 1 1 0 0 1 1 1 0 0 0 1 1 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 1 0 1 1 1 1 0 0 1 1 1 1 0 1 1 1 1 0...
output:
Wm5rkGNobnYjFI7TIY17RAm6FAQ2LlO9 OK 27603513 10356763 100766613 1061235 24311676 4314192 19943773 14864849 16655233 290182900 1526658 444219428 374865257 224734402 22029072 38581244 206505659 4909647 138506486 3485661 78463411 104571024 121607671 684082710 264107540 97586224 60641521 84966934 875237...
result:
ok
Extra Test:
score: 0
Extra Test Passed