QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#664504 | #7155. Padel Prize Pursuit | spycoderyt# | 100 ✓ | 311ms | 89020kb | C++14 | 1.9kb | 2024-10-21 20:54:49 | 2024-10-21 20:54:50 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
const int N = 1e6;
int cur[N],loset[N],cnt[N],win[N],ans[N]; // losing time
struct node{
int label, ori;
};
vector<node> A[N];
map<int,int> mp;
int n,m,a,b;
// int mxidx=-1,mx=0,oldidx,oldmx;
// the medal that the loss of this created
void dfs(int u,int mx,int mxidx, int par = -1) {
int cori = mp[u];
if(mxidx!=-1) {
// cout << "at " << u << " " << cori << " " << mx << " " << mxidx << "\n";
ans[mxidx]++;
}
for(auto [id,ori] : A[u]) {
int curmx = mx, curidx = mxidx;
// add mx in cnt
cnt[cori] += loset[u] - loset[id];
// oldidx = mxidx, oldmx = mx;
// cout << "cnt " << cori << " = " << cnt[cori] << "\n";
if(cnt[cori] > curmx) {
curmx = cnt[cori];
curidx = cori;
} else if(cnt[cori] == curmx) {
curidx = min(curidx,cori);
}
dfs(id,curmx,curidx,u);
cnt[cori] -= loset[u] - loset[id];
// mxidx = oldidx, mx = oldmx;
// remove cnt
}
}
int main() {
cin>>n>>m;
int id=n+1;
for(int i = 0;i<n;i++)cur[i]=i,mp[i] = i;
for(int i = 0;i<m;i++){
cin>>a>>b; // a beats b
A[cur[a]].push_back({cur[b],b});
// cout << cur[a] << " " << a << " " << cur[b] << " " << b << "\n";
// b loses so gets to reset
loset[cur[b]] = i;
win[cur[a]] = 1;
win[cur[b]] = 0;
cur[b] = id++;
mp[cur[b]] = b;
}
// dfs for each of the winners in the end
// for(int i = 0;i<id;i++) {
// cout << i << " " << loset[i] << "\n";
// }
for(int i = 0;i<id;i++) {
if(win[i]) {
// cout << "\nstart " << i << "\n";
loset[i] = m;
dfs(i,0,-1);
}
}
for(int i = 0;i<n;i++)cout<<ans[i]<<" ";
}
/*
3 4
0 1
2 1
1 0
2 1
3 7
0 1
0 2
2 0
0 1
1 0
2 0
0 2
*/
详细
Subtask #1:
score: 12
Accepted
Test #1:
score: 12
Accepted
time: 87ms
memory: 58100kb
input:
2 200000 0 1 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 1 0 0 1 0 1 0 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1...
output:
114418 85582
result:
ok single line: '114418 85582 '
Test #2:
score: 12
Accepted
time: 72ms
memory: 61580kb
input:
2 200000 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0...
output:
78408 121592
result:
ok single line: '78408 121592 '
Test #3:
score: 12
Accepted
time: 0ms
memory: 33472kb
input:
2 1 1 0
output:
0 1
result:
ok single line: '0 1 '
Test #4:
score: 12
Accepted
time: 87ms
memory: 44788kb
input:
2 200000 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1...
output:
200000 0
result:
ok single line: '200000 0 '
Subtask #2:
score: 16
Accepted
Test #5:
score: 16
Accepted
time: 0ms
memory: 34512kb
input:
2000 2000 741 1153 839 1048 1159 445 196 1042 404 1319 638 766 1373 621 736 705 1579 1696 454 1566 1794 474 993 858 424 380 1971 210 1729 861 1450 1275 986 535 964 431 1371 1176 658 378 708 1669 1049 1236 832 533 16 450 675 1324 1680 1598 1936 885 579 307 987 1497 996 1589 1087 843 1303 222 105 1692...
output:
0 2 0 4 1 0 5 0 2 2 1 0 0 1 0 1 0 0 1 0 0 1 1 1 3 0 5 0 2 1 2 0 0 0 0 1 5 1 5 3 0 0 1 0 0 0 1 0 0 3 0 1 0 1 1 0 1 0 2 1 0 0 4 0 1 0 0 1 0 0 1 1 0 1 1 2 0 1 0 0 0 0 0 2 0 2 0 0 1 0 0 1 1 0 1 0 2 0 2 3 3 0 0 0 1 2 0 2 2 2 1 1 0 1 2 0 1 1 1 2 1 0 2 0 0 7 0 2 0 3 0 4 0 0 0 0 0 1 2 0 1 2 0 0 1 4 0 0 0 1 ...
result:
ok single line: '0 2 0 4 1 0 5 0 2 2 1 0 0 1 0 ... 0 2 4 0 1 3 2 1 0 2 1 2 2 3 0 '
Test #6:
score: 16
Accepted
time: 9ms
memory: 33796kb
input:
2000 2000 363 1715 1907 76 1670 1939 1548 339 615 1019 232 2 291 680 303 792 697 1835 1575 1724 51 679 459 1241 229 1779 1809 1262 1181 1177 1799 1184 1356 1268 1823 206 1714 576 710 1294 1932 1561 51 679 1276 684 51 679 196 374 1257 154 524 605 1366 763 522 886 357 1873 1491 1178 1798 892 1203 549 ...
output:
0 0 1 0 13 0 0 1 0 3 0 0 1 4 0 1 0 0 3 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 0 0 1 1 2 1 2 0 4 0 0 0 0 4 0 0 2 5 0 0 0 0 6 0 1 2 0 1 6 0 0 0 0 0 0 1 1 0 0 1 2 6 17 0 1 1 0 0 0 0 1 0 3 0 0 8 0 1 0 2 0 0 0 3 2 0 5 0 0 2 1 1 1 2 0 0 0 0 1 0 2 0 0 1 18 0 0 0 2 0 3 1 0 0 1 0 0 1 4 0 1 0 2 0 1 0 0 1 2 1 0 0 1 0 1...
result:
ok single line: '0 0 1 0 13 0 0 1 0 3 0 0 1 4 0...0 2 0 0 0 14 0 2 1 0 0 0 0 0 1 '
Test #7:
score: 16
Accepted
time: 0ms
memory: 35324kb
input:
2000 2000 162 1885 239 1454 1359 1385 418 582 1589 1593 1213 1513 1336 91 1414 121 1766 313 1589 1294 1454 1369 1139 1177 1177 1178 1432 1580 1448 94 1730 480 1369 1781 1712 386 1894 639 1454 1356 1244 924 582 852 1366 145 1384 1832 1005 61 325 776 816 221 1667 1236 1336 1607 745 1978 1596 1677 641 ...
output:
0 2 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 3 4 0 9 0 0 0 0 3 0 0 0 0 2 0 2 0 0 2 0 3 0 0 0 1 0 0 0 0 3 0 8 0 0 0 0 0 0 0 1 0 0 0 0 2 0 2 0 2 0 0 0 0 0 3 0 0 5 1 0 0 0 0 0 0 0 3 0 0 6 8 0 0 0 0 0 0 0 0 0 0 1 0 0 4 0 5 0 0 5 0 0 0 0 2 0 0 0 0 0 0 5 9 0 0 2 0 0 0 0 0 0 0 ...
result:
ok single line: '0 2 1 0 0 0 0 0 1 0 0 0 0 0 0 ... 0 0 0 0 3 0 0 0 5 0 0 0 0 3 0 '
Test #8:
score: 16
Accepted
time: 3ms
memory: 34392kb
input:
2000 2000 220 455 455 800 220 1689 1689 260 1689 1920 455 30 1689 866 1920 419 260 706 800 323 323 1985 220 1046 800 1459 220 1767 1459 525 706 541 419 1766 1689 27 866 1554 1767 1577 1767 1706 1766 79 323 941 79 1313 525 70 1920 242 455 676 1459 287 1313 766 260 658 419 406 706 1964 1985 18 1689 94...
output:
0 0 0 0 0 0 0 0 0 0 6 1 0 0 17 0 0 0 6 0 0 0 0 0 0 0 0 11 12 0 1 0 0 6 2 0 2 0 1 0 0 0 23 0 0 6 0 0 0 0 15 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 11 0 0 0 0 2 0 0 1 0 4 0 0 0 1 0 0 0 3 6 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 6 1 0 0 17...3 0 0 2 0 1 3 0 17 0 0 0 0 0 0 '
Test #9:
score: 16
Accepted
time: 4ms
memory: 34720kb
input:
2000 2000 1810 1068 1810 1639 1810 1155 1810 1439 1810 519 1810 1012 1810 1607 1810 1994 1810 590 1810 136 1810 1385 1810 103 1810 1491 1810 1587 1810 137 1810 1166 1810 1843 1810 519 1810 42 1810 1825 1810 1768 1810 1787 1810 1491 1810 743 1810 1998 1810 1850 1810 1680 1810 480 1810 986 1810 368 18...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #10:
score: 16
Accepted
time: 0ms
memory: 33896kb
input:
2000 2000 786 392 392 1361 1361 311 311 1162 1162 394 394 786 786 1162 1162 394 394 786 786 311 311 786 786 394 394 1361 394 1162 1162 311 311 1162 1162 392 392 1162 1162 394 394 786 786 392 392 1361 1361 311 311 1361 1361 311 1361 394 394 1361 1361 786 786 311 311 392 392 1361 1361 1162 1162 394 39...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #11:
score: 16
Accepted
time: 3ms
memory: 34648kb
input:
2000 2000 790 1305 790 1607 1607 738 738 136 136 338 338 1963 1963 733 733 1368 1368 1267 1267 762 762 1802 1802 1100 1100 1488 1488 1028 1028 368 368 911 911 1100 1100 762 762 1377 1377 907 907 1290 1377 733 733 790 790 247 247 1383 1383 102 102 1859 1859 626 626 1231 1231 1597 1597 1164 1164 178 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 28 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #12:
score: 16
Accepted
time: 8ms
memory: 34920kb
input:
2000 2000 1021 1003 1021 1841 1841 1143 1021 1143 1143 1841 1021 704 704 1841 1021 1333 1021 1003 1021 704 704 1841 1021 1143 1143 1841 1143 704 1143 1333 1333 704 704 1841 1333 1003 1143 1333 1143 704 1021 599 1021 1841 1021 599 1021 1841 1841 704 1841 1003 1841 599 599 1333 599 1333 599 1333 1021 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #13:
score: 16
Accepted
time: 4ms
memory: 34464kb
input:
2000 2000 1584 1944 853 1300 193 1550 5 1709 1366 853 43 300 737 1662 1160 1292 1959 1325 1498 875 1532 949 1132 545 1486 815 445 1550 839 802 345 113 579 655 1108 141 1140 1968 1332 1153 1992 537 1921 1329 1325 1959 292 363 1642 1958 934 1694 512 1063 205 1916 1940 1333 1105 1320 56 292 1910 292 13...
output:
0 0 0 0 0 7 0 0 0 1 5 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 49 0 0 0 0 1 0 0 0 0 0 1 0 0 0 2 0 2 0 0 0 1 0 1 1 0 0 2 0 1 5 5 0 1 0 0 0 0 2 1 1 0 0 0 0 0 0 1 1 5 0 1 0 1 0 0 0 1 0 0 2 1 0 0 0 0 0 0 3 0 0 2 0 3 0 0 1 4 0 4 0 1 0 0 1 0 0 2 1 31 1 2 0 0 0 0 2 0 1 0 0 0 0 0 14 1 0 0 2 4 0 0 0 0 0 0 0 1 0 1 1 1 0...
result:
ok single line: '0 0 0 0 0 7 0 0 0 1 5 0 0 0 0 ... 0 0 3 0 0 0 0 2 0 0 0 0 0 0 4 '
Test #14:
score: 16
Accepted
time: 0ms
memory: 34660kb
input:
2000 2000 1799 144 1033 145 1875 1701 1408 1423 333 197 1417 493 145 1359 839 1273 542 1546 1308 1344 1410 77 1025 1377 1417 426 855 212 495 1251 905 611 1539 1350 1325 680 1295 1754 144 450 417 1616 287 1284 1739 997 51 726 262 734 614 86 313 1849 77 1946 151 222 551 624 1420 912 1501 489 1600 667 ...
output:
0 0 0 2 0 2 0 0 0 0 0 0 0 3 6 0 0 17 0 0 7 0 0 0 0 0 1 0 1 1 0 11 0 2 0 0 0 0 0 0 0 1 0 2 0 0 0 0 0 4 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 5 0 0 0 0 0 3 0 0 0 0 0 0 1 5 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 7 1 0 2 0 2 0 2 0 0 0 0 0 0 0 3 0 0 0 0 0 4 1 1 1 0 0 9 0 0 0 4 0 3 0 0 0 5 4 0 0 0 0 0 4 5 4 0 0 ...
result:
ok single line: '0 0 0 2 0 2 0 0 0 0 0 0 0 3 6 ...0 1 4 1 1 5 4 0 14 0 2 0 0 1 0 '
Test #15:
score: 16
Accepted
time: 3ms
memory: 35104kb
input:
2000 2000 1367 457 1367 1853 1367 459 459 178 459 863 863 457 459 743 743 1853 1853 459 1367 743 743 459 459 1853 743 178 178 863 863 1853 178 457 457 863 178 457 457 459 178 457 457 1853 457 178 178 1853 743 457 457 459 457 743 743 1853 1853 459 1367 459 459 743 459 457 457 1853 459 743 743 863 459...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #16:
score: 16
Accepted
time: 4ms
memory: 33728kb
input:
2000 2000 236 944 944 1282 236 658 658 1524 658 1048 1524 1946 1048 1274 236 458 1946 1258 1946 834 458 867 236 1572 1946 1624 867 369 1048 1883 944 277 944 97 658 661 1258 298 658 1860 97 263 944 136 1946 1270 1572 885 298 453 277 1216 277 791 661 1259 1216 294 834 173 298 1430 294 1220 1048 935 12...
output:
0 0 0 0 0 0 3 0 3 0 1 0 0 1 0 0 1 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 3 0 0 2 1 0 2 0 0 7 0 1 1 0 0 0 4 3 0 0 0 0 1 0 3 3 1 0 0 0 0 0 0 1 0 4 0 0 2 0 0 0 0 0 0 6 1 1 2 0 0 0 1 1 0 0 4 5 0 0 2 3 2 1 5 0 1 0 0 8 1 5 0 0 3 4 2 0 0 0 1 1 3 7 2 0 0 2 1 0 0 3 0 4 5 4 0 0 1 4 3 1 0 4 0 1 1 0 0 0 1 1 0 0 0 2 1 ...
result:
ok single line: '0 0 0 0 0 0 3 0 3 0 1 0 0 1 0 ...2 2 1 0 0 3 3 0 0 0 1 3 20 0 2 '
Test #17:
score: 16
Accepted
time: 0ms
memory: 34260kb
input:
2000 2000 466 347 1906 1039 168 676 760 1433 168 1086 466 1787 168 470 1319 852 168 1458 1677 1028 760 727 1682 1448 727 1554 1514 1979 1787 824 1319 28 347 839 168 672 672 1295 672 1946 824 725 28 963 1787 864 839 542 1554 651 1039 1965 1677 1212 1787 1720 470 830 168 586 542 1218 727 478 839 313 3...
output:
1 0 2 0 0 0 1 0 1 5 2 0 0 0 0 3 0 0 1 4 0 0 0 3 1 8 0 1 4 0 0 0 1 3 4 0 0 0 0 2 0 0 0 0 0 2 0 0 6 0 0 3 1 0 4 0 0 2 0 0 0 0 3 0 2 1 0 1 0 0 0 0 0 0 1 0 0 2 0 0 2 0 0 0 1 1 0 0 0 2 0 6 2 0 3 1 2 3 2 0 0 0 0 1 1 2 0 0 0 3 3 2 3 1 0 4 2 2 0 0 0 1 2 1 0 1 0 1 0 1 0 4 2 0 0 0 1 1 7 0 0 5 2 0 5 2 0 0 2 1 ...
result:
ok single line: '1 0 2 0 0 0 1 0 1 5 2 0 0 0 0 ... 0 0 1 3 2 0 3 1 2 0 0 0 3 1 2 '
Test #18:
score: 16
Accepted
time: 5ms
memory: 35256kb
input:
3 4 0 1 2 1 1 0 2 1
output:
1 1 2
result:
ok single line: '1 1 2 '
Test #19:
score: 16
Accepted
time: 8ms
memory: 35024kb
input:
3 7 0 1 0 2 2 0 0 1 1 0 2 0 0 2
output:
2 2 3
result:
ok single line: '2 2 3 '
Test #20:
score: 16
Accepted
time: 8ms
memory: 33900kb
input:
6 10 2 5 3 0 4 2 0 1 4 3 2 4 0 3 0 2 5 2 5 0
output:
5 0 1 1 1 2
result:
ok single line: '5 0 1 1 1 2 '
Subtask #3:
score: 15
Accepted
Test #21:
score: 15
Accepted
time: 89ms
memory: 58352kb
input:
2 200000 0 1 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 1 0 0 1 0 1 0 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1...
output:
114418 85582
result:
ok single line: '114418 85582 '
Test #22:
score: 15
Accepted
time: 90ms
memory: 63332kb
input:
2 200000 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0...
output:
78408 121592
result:
ok single line: '78408 121592 '
Test #23:
score: 15
Accepted
time: 4ms
memory: 34332kb
input:
2 1 1 0
output:
0 1
result:
ok single line: '0 1 '
Test #24:
score: 15
Accepted
time: 88ms
memory: 47332kb
input:
2 200000 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1...
output:
200000 0
result:
ok single line: '200000 0 '
Test #25:
score: 15
Accepted
time: 261ms
memory: 70836kb
input:
200000 200000 127497 49844 33921 127497 33921 39859 33921 138631 166524 33921 190508 166524 190508 50999 190508 91282 190508 39858 192631 190508 192631 21222 192631 178212 192631 129337 192631 59888 192631 33496 192631 37457 156089 192631 156089 154380 64450 156089 55350 64450 47341 55350 47341 8049...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #26:
score: 15
Accepted
time: 172ms
memory: 72868kb
input:
200000 200000 133112 5125 133112 5125 79440 133112 79440 5125 79440 133112 133112 79440 5125 133112 5125 133112 5125 133112 5125 79440 79440 5125 79440 133112 133112 79440 133112 79440 79440 133112 79440 133112 79440 133112 5125 79440 79440 5125 133112 79440 133112 5125 133112 79440 5125 133112 5125...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #27:
score: 15
Accepted
time: 97ms
memory: 58668kb
input:
7 200000 5 1 5 2 6 5 6 4 6 2 6 5 6 1 6 2 6 4 3 6 0 3 0 1 0 5 3 0 4 3 3 4 3 2 3 2 1 3 1 4 1 4 1 4 1 0 6 1 3 6 6 3 6 5 3 6 0 3 6 0 2 6 2 5 2 6 6 2 5 6 3 5 1 3 1 4 5 1 5 0 5 2 1 5 1 3 1 5 1 3 1 5 2 1 1 2 1 6 1 5 1 6 1 4 1 5 1 5 1 4 1 0 5 1 6 5 6 3 2 6 5 2 6 5 3 6 5 3 2 5 1 2 1 5 1 4 1 5 0 1 0 2 1 0 1 3...
output:
16 405 85449 4712 108750 668 0
result:
ok single line: '16 405 85449 4712 108750 668 0 '
Test #28:
score: 15
Accepted
time: 180ms
memory: 72780kb
input:
200000 200000 74489 60570 12146 74489 147640 12146 147640 139747 147640 195253 147640 153200 147640 73107 117472 147640 117472 107736 117472 69487 117472 159686 10813 117472 57557 10813 99937 57557 22637 99937 44867 22637 44867 57861 117443 44867 62376 117443 62376 161363 108346 62376 108346 30335 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #29:
score: 15
Accepted
time: 289ms
memory: 72240kb
input:
200000 200000 91584 138820 91584 152607 91584 194830 91584 194191 107799 91584 107799 5105 94528 107799 31145 94528 130122 31145 130122 125627 13275 130122 13275 75846 13275 139713 13275 88761 13275 141872 185293 13275 185293 98749 185293 149493 185293 159825 185293 108330 171531 185293 73688 171531...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #30:
score: 15
Accepted
time: 296ms
memory: 89020kb
input:
200000 199999 38963 164177 50862 38963 161216 50862 40786 161216 101295 40786 95756 101295 172936 95756 194407 172936 106240 194407 155843 106240 82989 155843 46308 82989 35380 46308 180666 35380 62373 180666 100648 62373 22679 100648 23941 22679 57908 23941 195841 57908 30559 195841 123952 30559 68...
output:
99029 0 0 58510 0 17566 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 13996 0 0 0 0 0 0 7679 0 2250 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '99029 0 0 58510 0 17566 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Subtask #4:
score: 20
Accepted
Test #31:
score: 20
Accepted
time: 294ms
memory: 63104kb
input:
200000 200000 33870 101688 1598 78943 23260 47952 84769 196360 104405 172552 58448 113260 76500 80767 95836 53662 58671 55746 167974 83639 176177 32272 45361 115076 152875 160216 33361 176768 162031 181989 134541 80064 21681 167447 96707 196846 16036 34620 166990 179451 45201 65888 89903 93145 13742...
output:
0 2 0 1 1 0 0 0 1 0 0 1 0 1 1 0 4 0 0 4 4 0 1 0 0 0 6 0 1 0 0 0 0 1 2 1 1 3 0 2 0 2 0 1 2 1 2 3 0 0 0 3 2 0 0 1 2 0 4 0 0 1 0 0 0 2 1 0 3 0 2 1 0 0 0 2 2 0 1 0 1 4 0 4 0 1 1 0 0 1 2 4 0 6 0 3 1 0 0 1 2 1 2 1 0 0 0 3 2 0 1 1 0 0 0 0 0 2 0 0 0 2 2 2 3 4 0 0 3 1 0 1 3 1 2 0 1 0 0 2 0 3 0 3 1 0 1 0 0 0 ...
result:
ok single line: '0 2 0 1 1 0 0 0 1 0 0 1 0 1 1 ... 0 0 0 0 0 3 0 1 0 2 2 0 0 2 0 '
Test #32:
score: 20
Accepted
time: 216ms
memory: 55252kb
input:
120000 200000 47028 97371 10694 30969 37884 97965 79789 57716 72114 19105 63568 75984 24671 22171 7017 36090 113544 17450 87835 67175 98652 109356 82068 98582 62905 72641 107351 10586 4777 47491 72693 22072 62301 85225 99719 48561 12025 89424 48351 29694 53249 8089 94857 39686 98016 49821 46469 2610...
output:
0 0 0 1 0 0 0 0 0 1 3 0 3 0 0 0 0 0 2 0 0 0 0 1 1 1 2 0 0 0 0 0 0 0 0 2 3 0 0 0 0 0 0 0 0 0 0 1 1 2 0 4 0 0 0 2 0 1 0 0 0 0 0 0 0 2 0 3 0 7 0 1 2 0 0 1 0 3 0 0 2 0 9 1 0 4 5 0 3 0 0 0 2 0 0 5 3 3 0 4 0 6 3 0 0 1 4 0 0 2 0 0 1 4 0 0 0 8 0 0 1 0 1 6 2 1 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 1 8 0 1 0 0 20 2 0...
result:
ok single line: '0 0 0 1 0 0 0 0 0 1 3 0 3 0 0 ... 0 1 2 0 0 0 0 4 1 0 1 4 1 1 1 '
Test #33:
score: 20
Accepted
time: 275ms
memory: 62696kb
input:
200000 200000 31345 191302 105122 84281 197303 115635 143667 863 60760 45666 79772 76452 191041 73107 169366 8678 889 114053 60521 141421 80318 1903 81751 46219 94602 57976 31746 191688 112169 129497 4282 190436 169886 133842 198775 945 69236 182997 101836 120305 58522 139048 134100 50445 30760 4164...
output:
0 1 0 1 0 0 0 0 0 3 1 0 1 0 0 1 0 1 14 1 4 0 2 2 0 0 2 1 1 1 0 0 0 0 1 1 0 2 0 1 1 0 0 0 0 0 1 0 1 1 1 1 3 0 1 1 0 0 0 0 0 0 5 3 1 3 0 1 1 1 3 2 1 1 3 0 0 3 1 0 0 0 0 1 0 0 1 1 2 1 0 0 0 5 0 0 1 0 0 1 1 1 1 2 0 0 0 1 1 1 0 4 1 0 3 0 0 2 1 1 0 0 1 3 1 4 1 3 1 1 0 0 0 3 0 0 1 1 5 2 1 2 0 2 0 3 0 0 1 1...
result:
ok single line: '0 1 0 1 0 0 0 0 0 3 1 0 1 0 0 ... 0 3 1 0 0 1 1 0 3 0 1 2 0 1 1 '
Test #34:
score: 20
Accepted
time: 261ms
memory: 63032kb
input:
200000 200000 161817 65043 5422 95142 92131 84269 22546 112499 69690 123565 190912 4047 48023 148291 26840 122049 179311 29337 163863 114795 77506 12874 8949 157995 66528 8013 82151 66623 194183 138996 22898 12534 198152 18644 16074 33112 133078 11997 80729 144593 121126 123467 15341 185242 121209 4...
output:
0 0 0 0 0 0 0 1 10 1 0 0 0 0 0 0 0 2 1 0 0 0 3 0 0 1 0 0 0 2 0 1 0 0 0 0 0 0 2 0 1 0 3 0 0 1 0 0 0 1 0 1 0 5 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 15 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 1 0 0 0 5 1 0 0 1 1 0 0 0 0 4 0 0 0 0 0 0 36 1 0 2 0 1 0 3 2 0 3 4 0 0 7 1 0 0 0 0 0 0 0 0 5 0 0 0 2 0 0 0 0 0 0 1 5...
result:
ok single line: '0 0 0 0 0 0 0 1 10 1 0 0 0 0 0... 0 0 0 0 1 0 0 2 0 0 1 2 0 0 0 '
Test #35:
score: 20
Accepted
time: 223ms
memory: 62264kb
input:
200000 200000 22653 10255 56556 116378 81515 188677 196661 165 29738 193520 149106 33931 191747 164089 10434 112474 102928 112276 65179 74364 98630 175363 39616 73875 131414 55785 183883 47374 137543 155292 92804 108178 33436 76558 165496 103873 44118 5903 173109 154076 125448 88957 74766 64160 1196...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 98 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 52 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 159 0 0 0...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 10 0... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #36:
score: 20
Accepted
time: 311ms
memory: 63972kb
input:
200000 200000 38012 150950 125594 70713 174568 49083 34048 36932 1343 15995 182544 195433 107420 114083 192284 19050 52998 124520 165507 151026 126535 177178 83208 102273 137414 128702 3393 14235 350 163583 192457 152958 123692 148250 57653 48785 182794 92695 174066 76882 184041 179390 33737 184078 ...
output:
2 0 0 0 0 0 1 0 1 1 1 1 0 1 1 6 1 3 3 0 1 1 0 2 1 0 2 0 1 1 1 0 2 1 0 1 0 2 0 3 0 0 13 1 0 1 1 1 0 1 0 3 1 1 1 0 0 2 1 0 0 11 1 0 1 0 3 1 0 3 0 1 0 0 0 2 2 0 1 1 0 0 1 3 0 0 3 0 7 3 1 1 1 1 0 0 0 1 0 1 0 0 0 0 0 0 2 1 0 0 1 0 0 0 1 1 4 3 1 12 0 0 0 0 1 1 4 0 2 1 1 1 0 3 1 0 0 1 2 0 2 0 2 3 1 0 0 1 0...
result:
ok single line: '2 0 0 0 0 0 1 0 1 1 1 1 0 1 1 ... 4 0 0 0 0 0 3 1 1 3 0 1 2 0 1 '
Test #37:
score: 20
Accepted
time: 290ms
memory: 63432kb
input:
200000 200000 65268 28589 186519 98228 3133 81974 199702 32400 112616 158298 97369 32630 163440 5933 2099 111717 115487 178721 66497 184621 188784 117077 156976 161776 41858 120734 41049 106374 157327 37210 170706 90900 193030 103284 108419 130593 30198 157593 45486 158778 157246 10417 112957 74789 ...
output:
2 0 0 0 3 0 1 3 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 2 0 0 1 1 1 1 0 0 2 0 0 0 3 0 0 0 0 0 1 0 0 6 0 0 0 2 0 0 0 0 0 0 0 3 0 0 0 0 24 1 0 2 2 1 0 0 0 5 2 1 0 0 1 0 16 0 0 0 0 0 1 0 0 0 1 1 1 0 10 0 0 0 0 0 1 1 1 4 0 4 1 2 0 2 0 1 1 0 0 0 0 1 0 0 8 2 3 0 0 0 0 0 0 0 1 1 5 0 2 1 3 1...
result:
ok single line: '2 0 0 0 3 0 1 3 0 0 0 0 0 0 0 ... 0 0 0 2 0 1 0 1 3 6 0 0 1 0 1 '
Test #38:
score: 20
Accepted
time: 295ms
memory: 65908kb
input:
200000 200000 46149 165360 50988 182943 69590 199169 135207 168973 143392 28735 21962 174608 102578 124463 20577 149389 84918 69868 165657 109892 176257 171365 35637 99031 90266 8331 197180 86293 109399 194349 173129 82460 173332 34424 155029 162731 191490 50095 158695 125550 45809 106170 121013 184...
output:
1 0 0 1 1 0 1 1 0 2 0 0 1 1 0 0 3 1 0 1 1 1 1 0 0 1 0 1 1 1 0 1 1 7 1 1 1 2 3 0 1 0 1 1 3 1 0 1 3 2 2 0 3 3 0 1 1 1 0 1 2 0 1 1 1 0 0 1 1 1 1 1 2 4 0 1 1 2 1 1 1 3 0 0 2 2 1 1 0 0 1 0 0 0 3 1 0 1 1 1 0 0 1 1 1 1 3 1 3 0 0 2 0 1 2 0 3 0 1 0 2 2 1 1 0 1 1 1 1 0 1 3 1 1 3 0 1 1 1 3 0 1 0 2 1 1 0 1 0 1 ...
result:
ok single line: '1 0 0 1 1 0 1 1 0 2 0 0 1 1 0 ... 3 1 0 0 0 0 1 1 3 1 1 0 1 3 1 '
Test #39:
score: 20
Accepted
time: 179ms
memory: 61984kb
input:
200000 200000 150663 138574 162545 23730 102659 49433 28627 105650 54618 118941 62082 59213 103668 20457 115658 87367 117634 85369 7174 80230 156487 86083 28155 196145 98972 119628 127821 156281 98285 134668 36078 123797 140266 118221 57495 172360 163757 38765 40657 38765 5434 168437 83739 49787 747...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #40:
score: 20
Accepted
time: 285ms
memory: 60828kb
input:
200000 200000 69584 124920 23019 88345 46775 46872 60081 104283 54276 63974 79639 173666 24958 106210 132628 150099 5240 193653 185157 163134 170247 5746 26683 79306 175079 124450 97262 63460 32268 100353 52031 16848 8057 38354 138601 125211 81344 160155 51051 3549 88947 14035 165251 111970 59934 77...
output:
1 0 0 3 0 0 1 0 0 3 1 0 0 0 7 0 4 1 0 0 1 0 0 0 0 0 3 0 0 1 9 0 2 1 0 0 2 0 1 1 10 1 0 0 0 0 1 0 1 1 3 0 0 0 3 0 0 3 3 0 2 0 2 1 0 0 1 0 1 0 1 0 0 0 1 0 0 0 1 1 1 0 2 2 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 1 0 0 1 4 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 3 0 1 0 0 1 0 1 2 0 3 0 0 3 0 5 0 0 0 3 2...
result:
ok single line: '1 0 0 3 0 0 1 0 0 3 1 0 0 0 7 ... 3 3 1 0 1 0 2 1 1 0 2 1 2 0 0 '
Test #41:
score: 20
Accepted
time: 214ms
memory: 60720kb
input:
200000 200000 152701 63906 7265 70804 196416 158367 123978 158827 191508 29784 113861 185154 126313 139011 132812 193829 102675 53184 72766 143750 94166 183727 138170 80452 163799 51972 77387 95341 59265 151029 39141 166251 139277 160569 185387 181856 193455 47519 133160 193325 105789 4697 94088 161...
output:
0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 27 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7...
result:
ok single line: '0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 ...0 0 0 0 0 18 0 0 0 0 0 0 0 0 0 '
Test #42:
score: 20
Accepted
time: 175ms
memory: 61232kb
input:
200000 200000 166472 26705 147957 76560 60550 89597 196064 119320 85639 86901 60732 70809 85639 70160 189424 86901 166368 2770 152226 91254 185846 192947 193136 149849 192947 26589 3725 45428 91254 63442 15430 177149 71555 133981 86901 177149 177149 69875 38473 26589 177058 150747 173750 48271 89597...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #43:
score: 20
Accepted
time: 165ms
memory: 57912kb
input:
200000 200000 142716 177973 142716 177973 33682 177973 142716 33682 142716 177973 142716 33682 142716 33682 142716 177973 142716 33682 177973 33682 142716 177973 177973 33682 142716 177973 142716 33682 142716 33682 142716 33682 33682 177973 33682 177973 142716 177973 142716 33682 142716 177973 14271...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #44:
score: 20
Accepted
time: 153ms
memory: 60832kb
input:
200000 200000 102764 85969 120299 85969 102764 161503 120299 120078 102764 120299 85969 168358 102764 120299 120299 161503 120299 169879 120299 120078 102764 168358 169879 120078 85969 95726 168358 119138 120299 85969 102764 161503 135792 95726 120299 120078 95726 119138 95726 161503 168358 120078 9...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Subtask #5:
score: 22
Accepted
Test #45:
score: 22
Accepted
time: 267ms
memory: 86696kb
input:
200000 199999 38963 164177 50862 38963 161216 50862 40786 161216 101295 40786 95756 101295 172936 95756 194407 172936 106240 194407 155843 106240 82989 155843 46308 82989 35380 46308 180666 35380 62373 180666 100648 62373 22679 100648 23941 22679 57908 23941 195841 57908 30559 195841 123952 30559 68...
output:
99029 0 0 58510 0 17566 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 13996 0 0 0 0 0 0 7679 0 2250 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '99029 0 0 58510 0 17566 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #46:
score: 22
Accepted
time: 257ms
memory: 60156kb
input:
200000 199999 71991 169488 146786 107854 28414 125380 84535 950 116408 20502 59780 93568 3641 125626 140641 95712 174416 52557 129197 67781 14945 189486 188533 142712 153256 9038 197250 143580 8468 27391 150740 116154 150633 128866 43920 163109 188350 24110 10621 41212 4843 154899 29633 29615 43347 ...
output:
1 0 0 0 0 0 14 3 1 0 0 0 0 0 3 0 0 4 0 0 0 1 0 0 3 1 1 0 0 0 0 1 1 2 0 0 3 0 0 16 0 0 0 1 0 1 5 0 0 0 0 2 4 5 2 1 0 0 1 0 0 0 0 3 0 2 0 0 1 0 0 0 2 1 0 0 0 4 1 1 0 0 2 0 1 5 3 2 1 0 0 3 0 0 0 0 0 0 0 0 0 0 0 1 5 0 0 0 2 2 0 0 0 0 0 0 1 0 0 1 0 0 0 0 2 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 3 0 0 ...
result:
ok single line: '1 0 0 0 0 0 14 3 1 0 0 0 0 0 3... 0 3 3 0 0 0 0 1 1 0 0 0 0 0 0 '
Test #47:
score: 22
Accepted
time: 166ms
memory: 53876kb
input:
200000 101824 62880 54618 138197 60873 106623 45828 66530 133734 18705 151388 171868 82182 68149 137741 14548 159281 62282 134383 96766 99216 66218 69107 41065 2454 42704 199022 68331 152682 42197 163966 102544 178078 83543 69387 26909 39763 94248 158897 42519 110634 88395 11024 124042 23262 134395 ...
output:
1 10 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 2 0 1 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 1 0 9 1 0 0 0 3 0 0 6 0 0 0 0 1 0 2 0 2 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 1 0 1 0 2 0 0 4 0 0 4 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0 1 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0...
result:
ok single line: '1 10 1 0 0 0 0 0 0 0 1 1 0 0 0... 0 0 0 0 0 6 0 0 0 0 1 0 0 1 0 '
Test #48:
score: 22
Accepted
time: 256ms
memory: 57764kb
input:
200000 199990 18850 72950 117437 114341 24427 179676 199809 141259 1448 112104 57677 17577 39128 78174 23148 91037 187016 104236 78569 197554 191663 108798 64860 94661 22853 188252 179249 62134 188553 160 169999 174066 144040 195533 85604 25912 162232 143760 131007 26337 88523 41152 97677 157548 428...
output:
0 0 0 0 1 0 1 0 0 0 0 0 5 0 0 0 0 0 1 0 0 0 0 0 2 0 0 0 0 0 1 3 0 0 0 0 3 0 0 0 0 1 0 1 4 1 0 0 0 12 3 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 5 0 1 0 4 6 0 6 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 2 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 8 0 0 0 2 0 5 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 2 0 1 0 0 5...
result:
ok single line: '0 0 0 0 1 0 1 0 0 0 0 0 5 0 0 ... 3 4 0 0 0 0 0 0 8 0 0 0 0 0 3 '
Test #49:
score: 22
Accepted
time: 280ms
memory: 60984kb
input:
200000 199999 161078 106850 43798 105866 7053 158929 21344 67124 154929 159963 148116 89581 31695 71981 139919 67118 158807 136968 126548 25054 175572 61337 77394 162573 194771 143833 76915 13361 15062 184881 199517 115191 136509 176504 2027 176758 50520 59960 189557 70998 30411 76099 40111 123062 3...
output:
4 0 0 0 17 0 0 0 2 0 0 0 0 0 0 0 9 2 16 1 0 0 1 0 0 1 0 2 1 0 4 0 0 0 0 0 0 2 0 0 0 0 1 1 1 0 0 0 0 2 1 5 0 1 0 0 0 6 0 5 0 0 0 0 0 0 1 0 1 5 3 3 1 0 0 1 0 0 0 0 0 0 0 1 2 0 7 0 0 0 2 0 0 3 1 0 6 3 3 0 0 0 0 0 0 0 1 18 2 3 0 0 0 0 0 5 0 0 0 0 0 0 2 2 7 0 0 0 5 0 4 0 0 0 0 0 4 2 0 0 0 0 1 2 3 0 2 0 0...
result:
ok single line: '4 0 0 0 17 0 0 0 2 0 0 0 0 0 0... 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 '
Test #50:
score: 22
Accepted
time: 228ms
memory: 57736kb
input:
200000 199999 160209 131832 160209 112690 160209 51661 160209 193199 160209 110568 160209 178947 160209 143084 160209 40660 160209 26740 160209 62950 160209 81618 160209 30051 160209 117411 160209 55598 160209 196715 160209 111999 160209 55178 160209 191203 160209 114638 160209 136102 160209 176242 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #51:
score: 22
Accepted
time: 259ms
memory: 61792kb
input:
200000 199999 183533 139358 84648 177720 11235 162260 179439 146655 119650 65118 96239 119650 169722 14926 34190 80634 29119 24638 177392 182427 49081 179439 198201 49081 22048 198201 169611 155656 61371 177733 137381 4875 35373 79960 29872 169611 52586 190172 14803 22048 8661 40379 171445 114277 86...
output:
0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 17 0 0 0 0 0 0 0 0 0 1 0 0 0 7 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 ... 0 0 0 8 0 0 0 0 3 0 4 0 0 0 0 '
Test #52:
score: 22
Accepted
time: 271ms
memory: 61636kb
input:
200000 199999 64458 197472 67762 148239 96350 57399 170378 140168 153346 126933 12587 46756 74008 51150 63001 75566 4973 104566 165281 140999 5413 119888 61702 160453 155505 23102 122158 147048 178194 179786 107268 56353 139335 97771 58616 148792 186384 56479 183582 86573 112175 33504 120252 32265 7...
output:
1 0 0 0 2 2 0 0 0 0 0 0 1 0 4 3 3 0 0 0 0 0 0 2 0 1 2 8 0 0 0 0 0 0 0 0 0 9 0 0 0 0 0 0 1 1 6 1 1 0 4 3 0 8 0 3 0 0 0 2 0 0 0 3 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 1 4 0 1 0 1 0 0 1 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 5 0 2 1 0 1 6 0 0 1 0 0 0 0 2 0 0 2 0 ...
result:
ok single line: '1 0 0 0 2 2 0 0 0 0 0 0 1 0 4 ... 0 0 2 4 0 0 1 1 0 0 0 1 0 2 0 '
Test #53:
score: 22
Accepted
time: 240ms
memory: 61352kb
input:
200000 199999 120776 141715 186264 95132 161778 133292 111986 140582 46169 111936 70300 85966 86242 5048 45237 195124 117877 144008 174419 73317 168100 83302 186264 95358 85450 13393 1 144786 55493 77958 176806 27614 53446 94393 117639 163782 193357 45414 108226 118419 100272 174248 23726 50840 5904...
output:
0 1 0 3 4 0 0 0 0 0 0 0 5 0 0 2 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 2 4 0 0 0 0 1 0 1 0 0 3 1 0 1 0 0 0 1 0 0 0 3 0 0 0 0 0 0 2 0 4 0 3 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 4 0 0 0 0 0 0 7 0 0 0 0 1 0 0 0 0 0 3 0 0 5 0 8 0 0 0 0 2 0 0 0 0 4 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 4 10 2 1 0...
result:
ok single line: '0 1 0 3 4 0 0 0 0 0 0 0 5 0 0 ... 4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 '
Test #54:
score: 22
Accepted
time: 252ms
memory: 62136kb
input:
200000 199999 93836 67261 7072 54020 72514 118489 70075 94382 49095 771 127986 164268 124592 131875 198833 22689 130204 137986 40481 139005 122199 121666 77823 103662 57031 167521 19406 60118 86920 104895 88542 75143 15599 1124 26701 64650 137099 137527 54421 109170 194380 136498 9932 51444 159281 4...
output:
1 0 0 1 4 0 0 7 1 0 2 2 0 2 0 0 0 7 1 2 2 0 0 0 0 0 2 0 2 0 0 2 0 0 2 0 0 5 0 1 1 0 1 0 0 1 0 0 8 2 0 0 0 0 2 0 0 4 0 1 0 0 0 0 0 9 0 0 0 2 0 2 3 1 0 0 0 2 0 0 0 0 2 0 0 0 1 0 0 0 0 0 3 0 0 7 1 2 0 1 1 0 0 1 1 0 0 0 0 3 0 0 0 2 0 0 0 0 1 0 0 1 2 2 0 3 1 0 0 0 2 0 0 1 2 8 0 0 1 0 2 2 0 0 0 0 3 0 0 0 ...
result:
ok single line: '1 0 0 1 4 0 0 7 1 0 2 2 0 2 0 ... 0 0 0 0 0 3 0 2 0 4 0 0 5 0 3 '
Test #55:
score: 22
Accepted
time: 252ms
memory: 67248kb
input:
200000 199999 14065 102792 65336 14065 106880 65336 170509 106880 95179 174332 128808 170509 182866 128808 95179 182866 112897 158304 95179 112897 59708 95179 78611 59708 71556 78611 71556 129231 162284 71556 162284 92465 195579 162284 26692 195579 9071 18053 68717 148794 26692 68717 198485 26692 86...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Subtask #6:
score: 15
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Dependency #5:
100%
Accepted
Test #56:
score: 15
Accepted
time: 86ms
memory: 58476kb
input:
2 200000 0 1 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 1 0 0 1 0 1 0 1 1 0 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1...
output:
114418 85582
result:
ok single line: '114418 85582 '
Test #57:
score: 15
Accepted
time: 89ms
memory: 60780kb
input:
2 200000 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0...
output:
78408 121592
result:
ok single line: '78408 121592 '
Test #58:
score: 15
Accepted
time: 4ms
memory: 33832kb
input:
2 1 1 0
output:
0 1
result:
ok single line: '0 1 '
Test #59:
score: 15
Accepted
time: 79ms
memory: 46192kb
input:
2 200000 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1...
output:
200000 0
result:
ok single line: '200000 0 '
Test #60:
score: 15
Accepted
time: 6ms
memory: 34240kb
input:
2000 2000 741 1153 839 1048 1159 445 196 1042 404 1319 638 766 1373 621 736 705 1579 1696 454 1566 1794 474 993 858 424 380 1971 210 1729 861 1450 1275 986 535 964 431 1371 1176 658 378 708 1669 1049 1236 832 533 16 450 675 1324 1680 1598 1936 885 579 307 987 1497 996 1589 1087 843 1303 222 105 1692...
output:
0 2 0 4 1 0 5 0 2 2 1 0 0 1 0 1 0 0 1 0 0 1 1 1 3 0 5 0 2 1 2 0 0 0 0 1 5 1 5 3 0 0 1 0 0 0 1 0 0 3 0 1 0 1 1 0 1 0 2 1 0 0 4 0 1 0 0 1 0 0 1 1 0 1 1 2 0 1 0 0 0 0 0 2 0 2 0 0 1 0 0 1 1 0 1 0 2 0 2 3 3 0 0 0 1 2 0 2 2 2 1 1 0 1 2 0 1 1 1 2 1 0 2 0 0 7 0 2 0 3 0 4 0 0 0 0 0 1 2 0 1 2 0 0 1 4 0 0 0 1 ...
result:
ok single line: '0 2 0 4 1 0 5 0 2 2 1 0 0 1 0 ... 0 2 4 0 1 3 2 1 0 2 1 2 2 3 0 '
Test #61:
score: 15
Accepted
time: 0ms
memory: 34396kb
input:
2000 2000 363 1715 1907 76 1670 1939 1548 339 615 1019 232 2 291 680 303 792 697 1835 1575 1724 51 679 459 1241 229 1779 1809 1262 1181 1177 1799 1184 1356 1268 1823 206 1714 576 710 1294 1932 1561 51 679 1276 684 51 679 196 374 1257 154 524 605 1366 763 522 886 357 1873 1491 1178 1798 892 1203 549 ...
output:
0 0 1 0 13 0 0 1 0 3 0 0 1 4 0 1 0 0 3 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 0 0 1 1 2 1 2 0 4 0 0 0 0 4 0 0 2 5 0 0 0 0 6 0 1 2 0 1 6 0 0 0 0 0 0 1 1 0 0 1 2 6 17 0 1 1 0 0 0 0 1 0 3 0 0 8 0 1 0 2 0 0 0 3 2 0 5 0 0 2 1 1 1 2 0 0 0 0 1 0 2 0 0 1 18 0 0 0 2 0 3 1 0 0 1 0 0 1 4 0 1 0 2 0 1 0 0 1 2 1 0 0 1 0 1...
result:
ok single line: '0 0 1 0 13 0 0 1 0 3 0 0 1 4 0...0 2 0 0 0 14 0 2 1 0 0 0 0 0 1 '
Test #62:
score: 15
Accepted
time: 3ms
memory: 34472kb
input:
2000 2000 162 1885 239 1454 1359 1385 418 582 1589 1593 1213 1513 1336 91 1414 121 1766 313 1589 1294 1454 1369 1139 1177 1177 1178 1432 1580 1448 94 1730 480 1369 1781 1712 386 1894 639 1454 1356 1244 924 582 852 1366 145 1384 1832 1005 61 325 776 816 221 1667 1236 1336 1607 745 1978 1596 1677 641 ...
output:
0 2 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 3 4 0 9 0 0 0 0 3 0 0 0 0 2 0 2 0 0 2 0 3 0 0 0 1 0 0 0 0 3 0 8 0 0 0 0 0 0 0 1 0 0 0 0 2 0 2 0 2 0 0 0 0 0 3 0 0 5 1 0 0 0 0 0 0 0 3 0 0 6 8 0 0 0 0 0 0 0 0 0 0 1 0 0 4 0 5 0 0 5 0 0 0 0 2 0 0 0 0 0 0 5 9 0 0 2 0 0 0 0 0 0 0 ...
result:
ok single line: '0 2 1 0 0 0 0 0 1 0 0 0 0 0 0 ... 0 0 0 0 3 0 0 0 5 0 0 0 0 3 0 '
Test #63:
score: 15
Accepted
time: 0ms
memory: 33620kb
input:
2000 2000 220 455 455 800 220 1689 1689 260 1689 1920 455 30 1689 866 1920 419 260 706 800 323 323 1985 220 1046 800 1459 220 1767 1459 525 706 541 419 1766 1689 27 866 1554 1767 1577 1767 1706 1766 79 323 941 79 1313 525 70 1920 242 455 676 1459 287 1313 766 260 658 419 406 706 1964 1985 18 1689 94...
output:
0 0 0 0 0 0 0 0 0 0 6 1 0 0 17 0 0 0 6 0 0 0 0 0 0 0 0 11 12 0 1 0 0 6 2 0 2 0 1 0 0 0 23 0 0 6 0 0 0 0 15 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 11 0 0 0 0 2 0 0 1 0 4 0 0 0 1 0 0 0 3 6 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 6 1 0 0 17...3 0 0 2 0 1 3 0 17 0 0 0 0 0 0 '
Test #64:
score: 15
Accepted
time: 3ms
memory: 34636kb
input:
2000 2000 1810 1068 1810 1639 1810 1155 1810 1439 1810 519 1810 1012 1810 1607 1810 1994 1810 590 1810 136 1810 1385 1810 103 1810 1491 1810 1587 1810 137 1810 1166 1810 1843 1810 519 1810 42 1810 1825 1810 1768 1810 1787 1810 1491 1810 743 1810 1998 1810 1850 1810 1680 1810 480 1810 986 1810 368 18...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #65:
score: 15
Accepted
time: 9ms
memory: 33764kb
input:
2000 2000 786 392 392 1361 1361 311 311 1162 1162 394 394 786 786 1162 1162 394 394 786 786 311 311 786 786 394 394 1361 394 1162 1162 311 311 1162 1162 392 392 1162 1162 394 394 786 786 392 392 1361 1361 311 311 1361 1361 311 1361 394 394 1361 1361 786 786 311 311 392 392 1361 1361 1162 1162 394 39...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #66:
score: 15
Accepted
time: 3ms
memory: 34188kb
input:
2000 2000 790 1305 790 1607 1607 738 738 136 136 338 338 1963 1963 733 733 1368 1368 1267 1267 762 762 1802 1802 1100 1100 1488 1488 1028 1028 368 368 911 911 1100 1100 762 762 1377 1377 907 907 1290 1377 733 733 790 790 247 247 1383 1383 102 102 1859 1859 626 626 1231 1231 1597 1597 1164 1164 178 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 28 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #67:
score: 15
Accepted
time: 6ms
memory: 34920kb
input:
2000 2000 1021 1003 1021 1841 1841 1143 1021 1143 1143 1841 1021 704 704 1841 1021 1333 1021 1003 1021 704 704 1841 1021 1143 1143 1841 1143 704 1143 1333 1333 704 704 1841 1333 1003 1143 1333 1143 704 1021 599 1021 1841 1021 599 1021 1841 1841 704 1841 1003 1841 599 599 1333 599 1333 599 1333 1021 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #68:
score: 15
Accepted
time: 7ms
memory: 34872kb
input:
2000 2000 1584 1944 853 1300 193 1550 5 1709 1366 853 43 300 737 1662 1160 1292 1959 1325 1498 875 1532 949 1132 545 1486 815 445 1550 839 802 345 113 579 655 1108 141 1140 1968 1332 1153 1992 537 1921 1329 1325 1959 292 363 1642 1958 934 1694 512 1063 205 1916 1940 1333 1105 1320 56 292 1910 292 13...
output:
0 0 0 0 0 7 0 0 0 1 5 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 49 0 0 0 0 1 0 0 0 0 0 1 0 0 0 2 0 2 0 0 0 1 0 1 1 0 0 2 0 1 5 5 0 1 0 0 0 0 2 1 1 0 0 0 0 0 0 1 1 5 0 1 0 1 0 0 0 1 0 0 2 1 0 0 0 0 0 0 3 0 0 2 0 3 0 0 1 4 0 4 0 1 0 0 1 0 0 2 1 31 1 2 0 0 0 0 2 0 1 0 0 0 0 0 14 1 0 0 2 4 0 0 0 0 0 0 0 1 0 1 1 1 0...
result:
ok single line: '0 0 0 0 0 7 0 0 0 1 5 0 0 0 0 ... 0 0 3 0 0 0 0 2 0 0 0 0 0 0 4 '
Test #69:
score: 15
Accepted
time: 0ms
memory: 34296kb
input:
2000 2000 1799 144 1033 145 1875 1701 1408 1423 333 197 1417 493 145 1359 839 1273 542 1546 1308 1344 1410 77 1025 1377 1417 426 855 212 495 1251 905 611 1539 1350 1325 680 1295 1754 144 450 417 1616 287 1284 1739 997 51 726 262 734 614 86 313 1849 77 1946 151 222 551 624 1420 912 1501 489 1600 667 ...
output:
0 0 0 2 0 2 0 0 0 0 0 0 0 3 6 0 0 17 0 0 7 0 0 0 0 0 1 0 1 1 0 11 0 2 0 0 0 0 0 0 0 1 0 2 0 0 0 0 0 4 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 5 0 0 0 0 0 3 0 0 0 0 0 0 1 5 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 7 1 0 2 0 2 0 2 0 0 0 0 0 0 0 3 0 0 0 0 0 4 1 1 1 0 0 9 0 0 0 4 0 3 0 0 0 5 4 0 0 0 0 0 4 5 4 0 0 ...
result:
ok single line: '0 0 0 2 0 2 0 0 0 0 0 0 0 3 6 ...0 1 4 1 1 5 4 0 14 0 2 0 0 1 0 '
Test #70:
score: 15
Accepted
time: 6ms
memory: 34640kb
input:
2000 2000 1367 457 1367 1853 1367 459 459 178 459 863 863 457 459 743 743 1853 1853 459 1367 743 743 459 459 1853 743 178 178 863 863 1853 178 457 457 863 178 457 457 459 178 457 457 1853 457 178 178 1853 743 457 457 459 457 743 743 1853 1853 459 1367 459 459 743 459 457 457 1853 459 743 743 863 459...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #71:
score: 15
Accepted
time: 0ms
memory: 34344kb
input:
2000 2000 236 944 944 1282 236 658 658 1524 658 1048 1524 1946 1048 1274 236 458 1946 1258 1946 834 458 867 236 1572 1946 1624 867 369 1048 1883 944 277 944 97 658 661 1258 298 658 1860 97 263 944 136 1946 1270 1572 885 298 453 277 1216 277 791 661 1259 1216 294 834 173 298 1430 294 1220 1048 935 12...
output:
0 0 0 0 0 0 3 0 3 0 1 0 0 1 0 0 1 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 3 0 0 2 1 0 2 0 0 7 0 1 1 0 0 0 4 3 0 0 0 0 1 0 3 3 1 0 0 0 0 0 0 1 0 4 0 0 2 0 0 0 0 0 0 6 1 1 2 0 0 0 1 1 0 0 4 5 0 0 2 3 2 1 5 0 1 0 0 8 1 5 0 0 3 4 2 0 0 0 1 1 3 7 2 0 0 2 1 0 0 3 0 4 5 4 0 0 1 4 3 1 0 4 0 1 1 0 0 0 1 1 0 0 0 2 1 ...
result:
ok single line: '0 0 0 0 0 0 3 0 3 0 1 0 0 1 0 ...2 2 1 0 0 3 3 0 0 0 1 3 20 0 2 '
Test #72:
score: 15
Accepted
time: 6ms
memory: 35540kb
input:
2000 2000 466 347 1906 1039 168 676 760 1433 168 1086 466 1787 168 470 1319 852 168 1458 1677 1028 760 727 1682 1448 727 1554 1514 1979 1787 824 1319 28 347 839 168 672 672 1295 672 1946 824 725 28 963 1787 864 839 542 1554 651 1039 1965 1677 1212 1787 1720 470 830 168 586 542 1218 727 478 839 313 3...
output:
1 0 2 0 0 0 1 0 1 5 2 0 0 0 0 3 0 0 1 4 0 0 0 3 1 8 0 1 4 0 0 0 1 3 4 0 0 0 0 2 0 0 0 0 0 2 0 0 6 0 0 3 1 0 4 0 0 2 0 0 0 0 3 0 2 1 0 1 0 0 0 0 0 0 1 0 0 2 0 0 2 0 0 0 1 1 0 0 0 2 0 6 2 0 3 1 2 3 2 0 0 0 0 1 1 2 0 0 0 3 3 2 3 1 0 4 2 2 0 0 0 1 2 1 0 1 0 1 0 1 0 4 2 0 0 0 1 1 7 0 0 5 2 0 5 2 0 0 2 1 ...
result:
ok single line: '1 0 2 0 0 0 1 0 1 5 2 0 0 0 0 ... 0 0 1 3 2 0 3 1 2 0 0 0 3 1 2 '
Test #73:
score: 15
Accepted
time: 248ms
memory: 72200kb
input:
200000 200000 127497 49844 33921 127497 33921 39859 33921 138631 166524 33921 190508 166524 190508 50999 190508 91282 190508 39858 192631 190508 192631 21222 192631 178212 192631 129337 192631 59888 192631 33496 192631 37457 156089 192631 156089 154380 64450 156089 55350 64450 47341 55350 47341 8049...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #74:
score: 15
Accepted
time: 171ms
memory: 71712kb
input:
200000 200000 133112 5125 133112 5125 79440 133112 79440 5125 79440 133112 133112 79440 5125 133112 5125 133112 5125 133112 5125 79440 79440 5125 79440 133112 133112 79440 133112 79440 79440 133112 79440 133112 79440 133112 5125 79440 79440 5125 133112 79440 133112 5125 133112 79440 5125 133112 5125...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #75:
score: 15
Accepted
time: 91ms
memory: 61448kb
input:
7 200000 5 1 5 2 6 5 6 4 6 2 6 5 6 1 6 2 6 4 3 6 0 3 0 1 0 5 3 0 4 3 3 4 3 2 3 2 1 3 1 4 1 4 1 4 1 0 6 1 3 6 6 3 6 5 3 6 0 3 6 0 2 6 2 5 2 6 6 2 5 6 3 5 1 3 1 4 5 1 5 0 5 2 1 5 1 3 1 5 1 3 1 5 2 1 1 2 1 6 1 5 1 6 1 4 1 5 1 5 1 4 1 0 5 1 6 5 6 3 2 6 5 2 6 5 3 6 5 3 2 5 1 2 1 5 1 4 1 5 0 1 0 2 1 0 1 3...
output:
16 405 85449 4712 108750 668 0
result:
ok single line: '16 405 85449 4712 108750 668 0 '
Test #76:
score: 15
Accepted
time: 166ms
memory: 73144kb
input:
200000 200000 74489 60570 12146 74489 147640 12146 147640 139747 147640 195253 147640 153200 147640 73107 117472 147640 117472 107736 117472 69487 117472 159686 10813 117472 57557 10813 99937 57557 22637 99937 44867 22637 44867 57861 117443 44867 62376 117443 62376 161363 108346 62376 108346 30335 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #77:
score: 15
Accepted
time: 238ms
memory: 72448kb
input:
200000 200000 91584 138820 91584 152607 91584 194830 91584 194191 107799 91584 107799 5105 94528 107799 31145 94528 130122 31145 130122 125627 13275 130122 13275 75846 13275 139713 13275 88761 13275 141872 185293 13275 185293 98749 185293 149493 185293 159825 185293 108330 171531 185293 73688 171531...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #78:
score: 15
Accepted
time: 255ms
memory: 81656kb
input:
200000 199999 38963 164177 50862 38963 161216 50862 40786 161216 101295 40786 95756 101295 172936 95756 194407 172936 106240 194407 155843 106240 82989 155843 46308 82989 35380 46308 180666 35380 62373 180666 100648 62373 22679 100648 23941 22679 57908 23941 195841 57908 30559 195841 123952 30559 68...
output:
99029 0 0 58510 0 17566 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 13996 0 0 0 0 0 0 7679 0 2250 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '99029 0 0 58510 0 17566 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #79:
score: 15
Accepted
time: 285ms
memory: 61620kb
input:
200000 200000 33870 101688 1598 78943 23260 47952 84769 196360 104405 172552 58448 113260 76500 80767 95836 53662 58671 55746 167974 83639 176177 32272 45361 115076 152875 160216 33361 176768 162031 181989 134541 80064 21681 167447 96707 196846 16036 34620 166990 179451 45201 65888 89903 93145 13742...
output:
0 2 0 1 1 0 0 0 1 0 0 1 0 1 1 0 4 0 0 4 4 0 1 0 0 0 6 0 1 0 0 0 0 1 2 1 1 3 0 2 0 2 0 1 2 1 2 3 0 0 0 3 2 0 0 1 2 0 4 0 0 1 0 0 0 2 1 0 3 0 2 1 0 0 0 2 2 0 1 0 1 4 0 4 0 1 1 0 0 1 2 4 0 6 0 3 1 0 0 1 2 1 2 1 0 0 0 3 2 0 1 1 0 0 0 0 0 2 0 0 0 2 2 2 3 4 0 0 3 1 0 1 3 1 2 0 1 0 0 2 0 3 0 3 1 0 1 0 0 0 ...
result:
ok single line: '0 2 0 1 1 0 0 0 1 0 0 1 0 1 1 ... 0 0 0 0 0 3 0 1 0 2 2 0 0 2 0 '
Test #80:
score: 15
Accepted
time: 230ms
memory: 54780kb
input:
120000 200000 47028 97371 10694 30969 37884 97965 79789 57716 72114 19105 63568 75984 24671 22171 7017 36090 113544 17450 87835 67175 98652 109356 82068 98582 62905 72641 107351 10586 4777 47491 72693 22072 62301 85225 99719 48561 12025 89424 48351 29694 53249 8089 94857 39686 98016 49821 46469 2610...
output:
0 0 0 1 0 0 0 0 0 1 3 0 3 0 0 0 0 0 2 0 0 0 0 1 1 1 2 0 0 0 0 0 0 0 0 2 3 0 0 0 0 0 0 0 0 0 0 1 1 2 0 4 0 0 0 2 0 1 0 0 0 0 0 0 0 2 0 3 0 7 0 1 2 0 0 1 0 3 0 0 2 0 9 1 0 4 5 0 3 0 0 0 2 0 0 5 3 3 0 4 0 6 3 0 0 1 4 0 0 2 0 0 1 4 0 0 0 8 0 0 1 0 1 6 2 1 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 1 8 0 1 0 0 20 2 0...
result:
ok single line: '0 0 0 1 0 0 0 0 0 1 3 0 3 0 0 ... 0 1 2 0 0 0 0 4 1 0 1 4 1 1 1 '
Test #81:
score: 15
Accepted
time: 267ms
memory: 65284kb
input:
200000 200000 31345 191302 105122 84281 197303 115635 143667 863 60760 45666 79772 76452 191041 73107 169366 8678 889 114053 60521 141421 80318 1903 81751 46219 94602 57976 31746 191688 112169 129497 4282 190436 169886 133842 198775 945 69236 182997 101836 120305 58522 139048 134100 50445 30760 4164...
output:
0 1 0 1 0 0 0 0 0 3 1 0 1 0 0 1 0 1 14 1 4 0 2 2 0 0 2 1 1 1 0 0 0 0 1 1 0 2 0 1 1 0 0 0 0 0 1 0 1 1 1 1 3 0 1 1 0 0 0 0 0 0 5 3 1 3 0 1 1 1 3 2 1 1 3 0 0 3 1 0 0 0 0 1 0 0 1 1 2 1 0 0 0 5 0 0 1 0 0 1 1 1 1 2 0 0 0 1 1 1 0 4 1 0 3 0 0 2 1 1 0 0 1 3 1 4 1 3 1 1 0 0 0 3 0 0 1 1 5 2 1 2 0 2 0 3 0 0 1 1...
result:
ok single line: '0 1 0 1 0 0 0 0 0 3 1 0 1 0 0 ... 0 3 1 0 0 1 1 0 3 0 1 2 0 1 1 '
Test #82:
score: 15
Accepted
time: 248ms
memory: 62220kb
input:
200000 200000 161817 65043 5422 95142 92131 84269 22546 112499 69690 123565 190912 4047 48023 148291 26840 122049 179311 29337 163863 114795 77506 12874 8949 157995 66528 8013 82151 66623 194183 138996 22898 12534 198152 18644 16074 33112 133078 11997 80729 144593 121126 123467 15341 185242 121209 4...
output:
0 0 0 0 0 0 0 1 10 1 0 0 0 0 0 0 0 2 1 0 0 0 3 0 0 1 0 0 0 2 0 1 0 0 0 0 0 0 2 0 1 0 3 0 0 1 0 0 0 1 0 1 0 5 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 15 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 1 0 0 0 5 1 0 0 1 1 0 0 0 0 4 0 0 0 0 0 0 36 1 0 2 0 1 0 3 2 0 3 4 0 0 7 1 0 0 0 0 0 0 0 0 5 0 0 0 2 0 0 0 0 0 0 1 5...
result:
ok single line: '0 0 0 0 0 0 0 1 10 1 0 0 0 0 0... 0 0 0 0 1 0 0 2 0 0 1 2 0 0 0 '
Test #83:
score: 15
Accepted
time: 223ms
memory: 59468kb
input:
200000 200000 22653 10255 56556 116378 81515 188677 196661 165 29738 193520 149106 33931 191747 164089 10434 112474 102928 112276 65179 74364 98630 175363 39616 73875 131414 55785 183883 47374 137543 155292 92804 108178 33436 76558 165496 103873 44118 5903 173109 154076 125448 88957 74766 64160 1196...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 98 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 52 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 159 0 0 0...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 10 0... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #84:
score: 15
Accepted
time: 285ms
memory: 62928kb
input:
200000 200000 38012 150950 125594 70713 174568 49083 34048 36932 1343 15995 182544 195433 107420 114083 192284 19050 52998 124520 165507 151026 126535 177178 83208 102273 137414 128702 3393 14235 350 163583 192457 152958 123692 148250 57653 48785 182794 92695 174066 76882 184041 179390 33737 184078 ...
output:
2 0 0 0 0 0 1 0 1 1 1 1 0 1 1 6 1 3 3 0 1 1 0 2 1 0 2 0 1 1 1 0 2 1 0 1 0 2 0 3 0 0 13 1 0 1 1 1 0 1 0 3 1 1 1 0 0 2 1 0 0 11 1 0 1 0 3 1 0 3 0 1 0 0 0 2 2 0 1 1 0 0 1 3 0 0 3 0 7 3 1 1 1 1 0 0 0 1 0 1 0 0 0 0 0 0 2 1 0 0 1 0 0 0 1 1 4 3 1 12 0 0 0 0 1 1 4 0 2 1 1 1 0 3 1 0 0 1 2 0 2 0 2 3 1 0 0 1 0...
result:
ok single line: '2 0 0 0 0 0 1 0 1 1 1 1 0 1 1 ... 4 0 0 0 0 0 3 1 1 3 0 1 2 0 1 '
Test #85:
score: 15
Accepted
time: 291ms
memory: 62872kb
input:
200000 200000 65268 28589 186519 98228 3133 81974 199702 32400 112616 158298 97369 32630 163440 5933 2099 111717 115487 178721 66497 184621 188784 117077 156976 161776 41858 120734 41049 106374 157327 37210 170706 90900 193030 103284 108419 130593 30198 157593 45486 158778 157246 10417 112957 74789 ...
output:
2 0 0 0 3 0 1 3 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 2 0 0 1 1 1 1 0 0 2 0 0 0 3 0 0 0 0 0 1 0 0 6 0 0 0 2 0 0 0 0 0 0 0 3 0 0 0 0 24 1 0 2 2 1 0 0 0 5 2 1 0 0 1 0 16 0 0 0 0 0 1 0 0 0 1 1 1 0 10 0 0 0 0 0 1 1 1 4 0 4 1 2 0 2 0 1 1 0 0 0 0 1 0 0 8 2 3 0 0 0 0 0 0 0 1 1 5 0 2 1 3 1...
result:
ok single line: '2 0 0 0 3 0 1 3 0 0 0 0 0 0 0 ... 0 0 0 2 0 1 0 1 3 6 0 0 1 0 1 '
Test #86:
score: 15
Accepted
time: 280ms
memory: 60820kb
input:
200000 200000 46149 165360 50988 182943 69590 199169 135207 168973 143392 28735 21962 174608 102578 124463 20577 149389 84918 69868 165657 109892 176257 171365 35637 99031 90266 8331 197180 86293 109399 194349 173129 82460 173332 34424 155029 162731 191490 50095 158695 125550 45809 106170 121013 184...
output:
1 0 0 1 1 0 1 1 0 2 0 0 1 1 0 0 3 1 0 1 1 1 1 0 0 1 0 1 1 1 0 1 1 7 1 1 1 2 3 0 1 0 1 1 3 1 0 1 3 2 2 0 3 3 0 1 1 1 0 1 2 0 1 1 1 0 0 1 1 1 1 1 2 4 0 1 1 2 1 1 1 3 0 0 2 2 1 1 0 0 1 0 0 0 3 1 0 1 1 1 0 0 1 1 1 1 3 1 3 0 0 2 0 1 2 0 3 0 1 0 2 2 1 1 0 1 1 1 1 0 1 3 1 1 3 0 1 1 1 3 0 1 0 2 1 1 0 1 0 1 ...
result:
ok single line: '1 0 0 1 1 0 1 1 0 2 0 0 1 1 0 ... 3 1 0 0 0 0 1 1 3 1 1 0 1 3 1 '
Test #87:
score: 15
Accepted
time: 183ms
memory: 64472kb
input:
200000 200000 150663 138574 162545 23730 102659 49433 28627 105650 54618 118941 62082 59213 103668 20457 115658 87367 117634 85369 7174 80230 156487 86083 28155 196145 98972 119628 127821 156281 98285 134668 36078 123797 140266 118221 57495 172360 163757 38765 40657 38765 5434 168437 83739 49787 747...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #88:
score: 15
Accepted
time: 282ms
memory: 60460kb
input:
200000 200000 69584 124920 23019 88345 46775 46872 60081 104283 54276 63974 79639 173666 24958 106210 132628 150099 5240 193653 185157 163134 170247 5746 26683 79306 175079 124450 97262 63460 32268 100353 52031 16848 8057 38354 138601 125211 81344 160155 51051 3549 88947 14035 165251 111970 59934 77...
output:
1 0 0 3 0 0 1 0 0 3 1 0 0 0 7 0 4 1 0 0 1 0 0 0 0 0 3 0 0 1 9 0 2 1 0 0 2 0 1 1 10 1 0 0 0 0 1 0 1 1 3 0 0 0 3 0 0 3 3 0 2 0 2 1 0 0 1 0 1 0 1 0 0 0 1 0 0 0 1 1 1 0 2 2 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 1 0 0 1 4 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 3 0 1 0 0 1 0 1 2 0 3 0 0 3 0 5 0 0 0 3 2...
result:
ok single line: '1 0 0 3 0 0 1 0 0 3 1 0 0 0 7 ... 3 3 1 0 1 0 2 1 1 0 2 1 2 0 0 '
Test #89:
score: 15
Accepted
time: 219ms
memory: 62140kb
input:
200000 200000 152701 63906 7265 70804 196416 158367 123978 158827 191508 29784 113861 185154 126313 139011 132812 193829 102675 53184 72766 143750 94166 183727 138170 80452 163799 51972 77387 95341 59265 151029 39141 166251 139277 160569 185387 181856 193455 47519 133160 193325 105789 4697 94088 161...
output:
0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 27 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7...
result:
ok single line: '0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 ...0 0 0 0 0 18 0 0 0 0 0 0 0 0 0 '
Test #90:
score: 15
Accepted
time: 176ms
memory: 61916kb
input:
200000 200000 166472 26705 147957 76560 60550 89597 196064 119320 85639 86901 60732 70809 85639 70160 189424 86901 166368 2770 152226 91254 185846 192947 193136 149849 192947 26589 3725 45428 91254 63442 15430 177149 71555 133981 86901 177149 177149 69875 38473 26589 177058 150747 173750 48271 89597...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #91:
score: 15
Accepted
time: 160ms
memory: 60568kb
input:
200000 200000 142716 177973 142716 177973 33682 177973 142716 33682 142716 177973 142716 33682 142716 33682 142716 177973 142716 33682 177973 33682 142716 177973 177973 33682 142716 177973 142716 33682 142716 33682 142716 33682 33682 177973 33682 177973 142716 177973 142716 33682 142716 177973 14271...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #92:
score: 15
Accepted
time: 165ms
memory: 60472kb
input:
200000 200000 102764 85969 120299 85969 102764 161503 120299 120078 102764 120299 85969 168358 102764 120299 120299 161503 120299 169879 120299 120078 102764 168358 169879 120078 85969 95726 168358 119138 120299 85969 102764 161503 135792 95726 120299 120078 95726 119138 95726 161503 168358 120078 9...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #93:
score: 15
Accepted
time: 236ms
memory: 57484kb
input:
200000 199999 71991 169488 146786 107854 28414 125380 84535 950 116408 20502 59780 93568 3641 125626 140641 95712 174416 52557 129197 67781 14945 189486 188533 142712 153256 9038 197250 143580 8468 27391 150740 116154 150633 128866 43920 163109 188350 24110 10621 41212 4843 154899 29633 29615 43347 ...
output:
1 0 0 0 0 0 14 3 1 0 0 0 0 0 3 0 0 4 0 0 0 1 0 0 3 1 1 0 0 0 0 1 1 2 0 0 3 0 0 16 0 0 0 1 0 1 5 0 0 0 0 2 4 5 2 1 0 0 1 0 0 0 0 3 0 2 0 0 1 0 0 0 2 1 0 0 0 4 1 1 0 0 2 0 1 5 3 2 1 0 0 3 0 0 0 0 0 0 0 0 0 0 0 1 5 0 0 0 2 2 0 0 0 0 0 0 1 0 0 1 0 0 0 0 2 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 3 0 0 ...
result:
ok single line: '1 0 0 0 0 0 14 3 1 0 0 0 0 0 3... 0 3 3 0 0 0 0 1 1 0 0 0 0 0 0 '
Test #94:
score: 15
Accepted
time: 161ms
memory: 51376kb
input:
200000 101824 62880 54618 138197 60873 106623 45828 66530 133734 18705 151388 171868 82182 68149 137741 14548 159281 62282 134383 96766 99216 66218 69107 41065 2454 42704 199022 68331 152682 42197 163966 102544 178078 83543 69387 26909 39763 94248 158897 42519 110634 88395 11024 124042 23262 134395 ...
output:
1 10 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 2 0 1 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 1 0 9 1 0 0 0 3 0 0 6 0 0 0 0 1 0 2 0 2 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 1 0 1 0 2 0 0 4 0 0 4 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0 1 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0...
result:
ok single line: '1 10 1 0 0 0 0 0 0 0 1 1 0 0 0... 0 0 0 0 0 6 0 0 0 0 1 0 0 1 0 '
Test #95:
score: 15
Accepted
time: 246ms
memory: 62328kb
input:
200000 199990 18850 72950 117437 114341 24427 179676 199809 141259 1448 112104 57677 17577 39128 78174 23148 91037 187016 104236 78569 197554 191663 108798 64860 94661 22853 188252 179249 62134 188553 160 169999 174066 144040 195533 85604 25912 162232 143760 131007 26337 88523 41152 97677 157548 428...
output:
0 0 0 0 1 0 1 0 0 0 0 0 5 0 0 0 0 0 1 0 0 0 0 0 2 0 0 0 0 0 1 3 0 0 0 0 3 0 0 0 0 1 0 1 4 1 0 0 0 12 3 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 5 0 1 0 4 6 0 6 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 2 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 8 0 0 0 2 0 5 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 2 0 1 0 0 5...
result:
ok single line: '0 0 0 0 1 0 1 0 0 0 0 0 5 0 0 ... 3 4 0 0 0 0 0 0 8 0 0 0 0 0 3 '
Test #96:
score: 15
Accepted
time: 237ms
memory: 62456kb
input:
200000 199999 161078 106850 43798 105866 7053 158929 21344 67124 154929 159963 148116 89581 31695 71981 139919 67118 158807 136968 126548 25054 175572 61337 77394 162573 194771 143833 76915 13361 15062 184881 199517 115191 136509 176504 2027 176758 50520 59960 189557 70998 30411 76099 40111 123062 3...
output:
4 0 0 0 17 0 0 0 2 0 0 0 0 0 0 0 9 2 16 1 0 0 1 0 0 1 0 2 1 0 4 0 0 0 0 0 0 2 0 0 0 0 1 1 1 0 0 0 0 2 1 5 0 1 0 0 0 6 0 5 0 0 0 0 0 0 1 0 1 5 3 3 1 0 0 1 0 0 0 0 0 0 0 1 2 0 7 0 0 0 2 0 0 3 1 0 6 3 3 0 0 0 0 0 0 0 1 18 2 3 0 0 0 0 0 5 0 0 0 0 0 0 2 2 7 0 0 0 5 0 4 0 0 0 0 0 4 2 0 0 0 0 1 2 3 0 2 0 0...
result:
ok single line: '4 0 0 0 17 0 0 0 2 0 0 0 0 0 0... 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 '
Test #97:
score: 15
Accepted
time: 210ms
memory: 53688kb
input:
200000 199999 160209 131832 160209 112690 160209 51661 160209 193199 160209 110568 160209 178947 160209 143084 160209 40660 160209 26740 160209 62950 160209 81618 160209 30051 160209 117411 160209 55598 160209 196715 160209 111999 160209 55178 160209 191203 160209 114638 160209 136102 160209 176242 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #98:
score: 15
Accepted
time: 257ms
memory: 65116kb
input:
200000 199999 183533 139358 84648 177720 11235 162260 179439 146655 119650 65118 96239 119650 169722 14926 34190 80634 29119 24638 177392 182427 49081 179439 198201 49081 22048 198201 169611 155656 61371 177733 137381 4875 35373 79960 29872 169611 52586 190172 14803 22048 8661 40379 171445 114277 86...
output:
0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 17 0 0 0 0 0 0 0 0 0 1 0 0 0 7 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 ... 0 0 0 8 0 0 0 0 3 0 4 0 0 0 0 '
Test #99:
score: 15
Accepted
time: 252ms
memory: 57976kb
input:
200000 199999 64458 197472 67762 148239 96350 57399 170378 140168 153346 126933 12587 46756 74008 51150 63001 75566 4973 104566 165281 140999 5413 119888 61702 160453 155505 23102 122158 147048 178194 179786 107268 56353 139335 97771 58616 148792 186384 56479 183582 86573 112175 33504 120252 32265 7...
output:
1 0 0 0 2 2 0 0 0 0 0 0 1 0 4 3 3 0 0 0 0 0 0 2 0 1 2 8 0 0 0 0 0 0 0 0 0 9 0 0 0 0 0 0 1 1 6 1 1 0 4 3 0 8 0 3 0 0 0 2 0 0 0 3 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 1 4 0 1 0 1 0 0 1 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 5 0 2 1 0 1 6 0 0 1 0 0 0 0 2 0 0 2 0 ...
result:
ok single line: '1 0 0 0 2 2 0 0 0 0 0 0 1 0 4 ... 0 0 2 4 0 0 1 1 0 0 0 1 0 2 0 '
Test #100:
score: 15
Accepted
time: 235ms
memory: 60176kb
input:
200000 199999 120776 141715 186264 95132 161778 133292 111986 140582 46169 111936 70300 85966 86242 5048 45237 195124 117877 144008 174419 73317 168100 83302 186264 95358 85450 13393 1 144786 55493 77958 176806 27614 53446 94393 117639 163782 193357 45414 108226 118419 100272 174248 23726 50840 5904...
output:
0 1 0 3 4 0 0 0 0 0 0 0 5 0 0 2 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 2 4 0 0 0 0 1 0 1 0 0 3 1 0 1 0 0 0 1 0 0 0 3 0 0 0 0 0 0 2 0 4 0 3 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 4 0 0 0 0 0 0 7 0 0 0 0 1 0 0 0 0 0 3 0 0 5 0 8 0 0 0 0 2 0 0 0 0 4 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 4 10 2 1 0...
result:
ok single line: '0 1 0 3 4 0 0 0 0 0 0 0 5 0 0 ... 4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 '
Test #101:
score: 15
Accepted
time: 247ms
memory: 64084kb
input:
200000 199999 93836 67261 7072 54020 72514 118489 70075 94382 49095 771 127986 164268 124592 131875 198833 22689 130204 137986 40481 139005 122199 121666 77823 103662 57031 167521 19406 60118 86920 104895 88542 75143 15599 1124 26701 64650 137099 137527 54421 109170 194380 136498 9932 51444 159281 4...
output:
1 0 0 1 4 0 0 7 1 0 2 2 0 2 0 0 0 7 1 2 2 0 0 0 0 0 2 0 2 0 0 2 0 0 2 0 0 5 0 1 1 0 1 0 0 1 0 0 8 2 0 0 0 0 2 0 0 4 0 1 0 0 0 0 0 9 0 0 0 2 0 2 3 1 0 0 0 2 0 0 0 0 2 0 0 0 1 0 0 0 0 0 3 0 0 7 1 2 0 1 1 0 0 1 1 0 0 0 0 3 0 0 0 2 0 0 0 0 1 0 0 1 2 2 0 3 1 0 0 0 2 0 0 1 2 8 0 0 1 0 2 2 0 0 0 0 3 0 0 0 ...
result:
ok single line: '1 0 0 1 4 0 0 7 1 0 2 2 0 2 0 ... 0 0 0 0 0 3 0 2 0 4 0 0 5 0 3 '
Test #102:
score: 15
Accepted
time: 251ms
memory: 64064kb
input:
200000 199999 14065 102792 65336 14065 106880 65336 170509 106880 95179 174332 128808 170509 182866 128808 95179 182866 112897 158304 95179 112897 59708 95179 78611 59708 71556 78611 71556 129231 162284 71556 162284 92465 195579 162284 26692 195579 9071 18053 68717 148794 26692 68717 198485 26692 86...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #103:
score: 15
Accepted
time: 278ms
memory: 63136kb
input:
200000 200000 51047 61365 116262 69314 132762 29941 139943 107938 103459 185082 46532 13813 61183 88618 128999 138310 180144 81427 199006 108466 185420 125101 110010 117647 75539 67059 19452 110919 50339 185849 15491 116700 55425 45383 147581 68095 198261 195398 177600 117500 42354 196471 130217 151...
output:
0 0 0 1 0 1 0 3 0 1 0 1 1 0 1 1 0 0 1 0 2 0 1 0 4 0 1 2 1 0 0 2 0 0 0 0 0 3 4 0 0 1 0 0 2 0 0 3 2 0 1 0 2 2 0 0 1 0 0 2 0 4 3 4 0 3 0 0 1 0 1 0 0 0 0 1 3 3 2 3 3 0 2 1 1 0 1 0 1 0 3 0 7 1 0 2 1 3 3 2 1 1 3 1 3 8 0 1 0 2 0 1 0 0 1 0 0 1 0 2 0 2 2 0 1 0 1 0 0 0 1 0 0 0 1 1 4 0 2 1 0 2 0 1 4 0 2 1 3 2 ...
result:
ok single line: '0 0 0 1 0 1 0 3 0 1 0 1 1 0 1 ... 0 1 3 1 2 0 1 0 4 0 0 2 0 0 0 '
Test #104:
score: 15
Accepted
time: 258ms
memory: 61472kb
input:
200000 200000 162773 165583 162773 37563 165583 79834 162773 15362 15362 40164 162773 74488 162773 952 952 179697 165583 74584 15362 139781 139781 20819 139781 40318 37563 128664 139781 164835 952 72429 15362 115199 15362 94511 165583 175879 72429 172239 162773 50772 115199 105881 162773 132926 1397...
output:
0 0 0 0 0 0 10 4 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 25 1 0 0 0 0 4 0 0 0 0 0 0 1 4 2 0 0 0 0 1 0 0 0 0 0 0 0 9 13 0 0 0 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 111 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0 0 0 0 0 0 2 0 0 0 7 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0...
result:
ok single line: '0 0 0 0 0 0 10 4 0 0 0 0 0 0 0... 0 0 0 3 0 0 0 0 3 0 0 0 0 0 0 '
Test #105:
score: 15
Accepted
time: 222ms
memory: 59232kb
input:
200000 200000 58691 89663 58691 88933 58691 124519 58691 79894 58691 89132 58691 42952 58691 1037 58691 183030 58691 33915 58691 58428 58691 109763 58691 119395 58691 181402 58691 194832 58691 162936 58691 184308 58691 79295 58691 5471 58691 74865 58691 19163 58691 11764 58691 129239 58691 139205 58...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #106:
score: 15
Accepted
time: 162ms
memory: 65352kb
input:
200000 200000 50080 4631 50080 122316 4631 167854 167854 122316 122316 151814 151814 4631 4631 40825 4631 40825 40825 83284 83284 122316 122316 16189 83284 38462 38462 87616 87616 16189 16189 154369 16189 154369 154369 50080 50080 87616 87616 167854 167854 163881 163881 47930 47930 40825 47930 16388...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #107:
score: 15
Accepted
time: 178ms
memory: 62108kb
input:
200000 200000 22697 81695 22697 178148 22697 30103 30103 159591 159591 181114 181114 63869 63869 118908 118908 18986 18986 105818 105818 28329 28329 198836 198836 168055 168055 99086 99086 69736 69736 144046 144046 88019 88019 152532 152532 43824 43824 131519 131519 170868 170868 119221 119221 17959...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 28 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #108:
score: 15
Accepted
time: 281ms
memory: 63556kb
input:
200000 200000 91829 18673 101150 135220 17630 90701 101307 72268 178955 48063 182887 109088 151371 98610 107948 20957 85613 60505 183938 88381 148193 160811 169214 39027 89983 14049 193034 81667 37279 71986 41721 168720 35290 163027 28380 30881 139468 138771 15941 110649 27707 146016 34533 38964 133...
output:
3 5 1 0 0 0 0 0 0 0 6 0 0 1 0 0 0 7 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 2 0 2 1 0 0 0 0 3 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 4 0 0 1 3 3 2 1 0 4 0 0 1 0 1 2 2 0 3 1 2 0 2 0 0 0 0 0 1 0 0 2 0 0 0 0 0 0 1 0 3 0 1 1 0 2 0 0 2 6 0 1 0 0 0 1 0 0 1 0 0 0 2 0 5 0 0 0 1 2 0 1 8 0 2 3 0 2 0 0 0 0 0 0 ...
result:
ok single line: '3 5 1 0 0 0 0 0 0 0 6 0 0 1 0 ... 0 0 0 1 0 0 0 0 0 0 2 0 0 0 0 '
Test #109:
score: 15
Accepted
time: 270ms
memory: 62492kb
input:
200000 200000 115220 94305 48352 143967 29736 153987 52350 22782 169051 125679 167717 82906 104550 93355 52318 195504 8632 100658 59733 80723 157234 97397 19810 133733 42379 118107 15344 160793 116551 65791 124914 10111 31912 197643 176185 181898 44771 67030 117480 59260 199906 52477 66457 83736 551...
output:
0 0 0 0 2 0 0 0 0 0 0 1 2 1 0 2 0 0 4 0 0 0 0 2 0 2 0 0 3 0 3 0 0 0 2 4 0 0 0 0 0 0 17 0 2 2 0 0 0 0 0 0 4 0 1 5 0 3 0 0 0 0 0 1 0 0 0 0 0 2 0 0 4 1 0 1 0 0 0 0 1 0 0 0 0 0 0 3 0 0 0 0 0 0 5 9 2 0 5 2 0 0 3 0 0 0 2 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 1 0 4 0 0 4 0 0 2 0 2 0 0 0 0 4 0 14 0 1 0 0 1 0 0 0 0 ...
result:
ok single line: '0 0 0 0 2 0 0 0 0 0 0 1 2 1 0 ... 0 5 0 3 0 0 0 0 0 2 0 2 4 0 0 '
Test #110:
score: 15
Accepted
time: 162ms
memory: 60932kb
input:
200000 200000 188431 89115 188431 113085 188431 89115 188431 127739 127739 77436 127739 79221 79221 116836 127739 132561 188431 26955 26955 116836 188431 127739 188431 26955 188431 137484 188431 113085 188431 113085 188431 89115 188431 116836 188431 42220 188431 132561 188431 77436 188431 137484 137...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #111:
score: 15
Accepted
time: 161ms
memory: 64104kb
input:
200000 200000 93836 185461 185461 99248 93836 157423 157423 102936 102936 99248 157423 91541 91541 197405 91541 102936 157423 94647 94647 26909 26909 94647 157423 102936 102936 99248 102936 26909 26909 91541 26909 94647 94647 99248 93836 94647 94647 157423 94647 26909 94647 102936 102936 4568 102936...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #112:
score: 15
Accepted
time: 269ms
memory: 59804kb
input:
200000 200000 35001 186684 35001 64133 64133 81218 64133 67399 186684 28356 81218 4074 186684 27314 186684 162495 27314 102620 186684 107858 64133 18781 107858 130370 67399 13973 81218 81197 130370 94721 67399 156555 28356 104582 81197 75615 81218 111169 67399 157942 81218 175537 13973 87953 75615 6...
output:
0 1 0 0 5 1 0 3 0 0 0 3 0 0 0 1 0 3 0 6 0 8 0 3 2 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 1 0 0 0 0 0 2 0 2 0 1 0 0 0 0 1 3 0 0 0 2 0 6 0 6 0 0 3 1 0 0 0 3 1 2 0 2 0 0 1 0 0 2 2 2 0 0 1 0 2 2 2 0 0 8 2 0 0 2 0 0 0 2 0 2 11 0 0 0 1 0 0 2 0 4 0 0 0 1 0 0 1 3 0 1 0 4 1 1 0 1 0 0 0 2 0 1 0 2 0 0 0 0 2 0 2 0 0 5 3...
result:
ok single line: '0 1 0 0 5 1 0 3 0 0 0 3 0 0 0 ...0 4 1 0 4 0 0 3 11 0 0 0 0 0 1 '
Test #113:
score: 15
Accepted
time: 272ms
memory: 63232kb
input:
200000 200000 175151 191728 38588 197561 175151 193479 82927 62229 121211 136723 121211 93981 191728 58449 82927 127035 193479 199872 136723 174430 103476 158725 84684 87973 65889 37739 174430 182322 87973 14210 62229 123835 158725 124588 93981 29361 193479 100429 93981 78865 191728 141553 84684 121...
output:
1 2 5 2 0 0 0 0 3 0 0 3 0 5 0 0 0 3 0 2 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 4 1 0 0 0 2 0 0 0 0 0 4 0 0 0 1 2 0 3 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 3 1 1 0 0 1 0 0 2 0 1 8 3 1 0 5 0 0 0 0 8 0 3 1 0 1 2 4 0 0 0 1 2 0 0 0 1 0 0 1 0 3 4 5 0 0 1 0 0 0 0 3 4 2 1 0 0 0 1 0 1 0 0 5 2 0 1 1 ...
result:
ok single line: '1 2 5 2 0 0 0 0 3 0 0 3 0 5 0 ... 0 0 2 0 0 4 1 2 1 0 0 0 0 1 1 '
Test #114:
score: 15
Accepted
time: 164ms
memory: 51088kb
input:
10000 200000 3116 1182 7829 827 6666 9510 996 9083 6195 3887 4226 5400 6563 5746 8157 8258 8863 7693 390 6494 1710 9540 232 8110 9295 4633 5425 395 746 385 3932 8864 1262 2262 7365 6306 4845 2966 9961 8013 4457 9167 6470 6421 2170 9718 6145 7987 3422 3280 3502 5650 2461 9483 4516 4161 4893 6193 321 ...
output:
16 18 30 209 3 3 44 3 55 5 4 2 31 16 1 5 15 2 21 24 6 5 6 5 7 12 3 25 7 10 1 5 10 0 7 2 2 21 46 3 3 3 22 6 8 15 54 24 3 1 2 3 1 18 10 11 103 21 5 18 0 35 4 28 15 14 9 5 178 72 59 79 2 1 0 8 13 2 3 21 43 0 5 6 0 1 46 56 10 11 16 5 3 22 5 3 3 34 1 2 29 0 1 1 3 7 5 0 2 36 19 9 2 1 106 3 4 73 5 21 0 47 ...
result:
ok single line: '16 18 30 209 3 3 44 3 55 5 4 2... 95 3 2 0 2 0 64 24 6 4 201 12 '
Test #115:
score: 15
Accepted
time: 134ms
memory: 50316kb
input:
1000 200000 523 375 882 607 878 934 169 877 558 95 559 228 71 730 409 226 932 935 94 95 481 378 342 232 757 542 871 583 30 783 202 852 559 500 177 420 340 184 359 227 466 276 126 260 59 752 566 31 950 629 796 917 281 227 973 672 626 773 783 164 19 233 741 823 800 551 832 163 554 358 766 437 30 600 4...
output:
1423 45 268 16 9 18 20 18 993 8118 0 8 24 42 74 19 7 90 13 9 53 113 191 26 219 448 9 351 253 18 823 19 34 3 389 50 77 4 304 2 201 8 183 27 10 36 183 5 7 762 218 167 5 27 18 8 47 43 1 27 68 135 28 77 2 8 84 28 151 21 10 705 19 11 46 284 30 34 57 8 682 10 3 14 2 76 6 8 0 16 14 6729 89 8 57 85 26 1 5 4...
result:
ok single line: '1423 45 268 16 9 18 20 18 993 ...8 736 4 5 574 6 82 2 512 235 0 '
Test #116:
score: 15
Accepted
time: 94ms
memory: 48968kb
input:
100 200000 30 6 88 66 75 98 82 25 88 49 2 44 63 38 84 22 17 31 69 16 51 87 21 96 7 4 44 23 7 92 67 8 93 79 9 36 39 67 44 82 91 81 12 9 72 38 38 29 73 93 74 6 99 60 37 4 56 41 65 20 77 49 53 1 57 90 13 98 96 35 4 9 43 89 40 62 72 65 42 16 44 74 6 9 77 60 54 69 76 25 6 98 51 7 34 86 25 78 44 80 55 7 3...
output:
678 1 730 132 1063 130 21312 1058 33 300 20 12 479 13 75 8 54 64 14 983 775 7523 12296 12 98 24 141 33 15 7 3 83 495 209 4000 262 523 61 20 14 70 46248 1279 2393 28 11 0 51 50 7 3534 608 1799 21 296 29 618 52 114 65 588 76 26 65 714 3255 59 28 602 40 8758 986 105 784 8368 119 10976 410 20125 126 113...
result:
ok single line: '678 1 730 132 1063 130 21312 1...17 641 42 1931 20748 1 96 2598 '
Test #117:
score: 15
Accepted
time: 159ms
memory: 66484kb
input:
200000 200000 33380 47772 177716 33380 177716 33380 33380 177716 47772 33380 47772 177716 33380 177716 47772 177716 33380 47772 47772 177716 33380 47772 33380 177716 33380 47772 33380 177716 177716 47772 177716 33380 47772 177716 47772 177716 47772 177716 33380 47772 177716 47772 177716 33380 177716...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok single line: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 '
Test #118:
score: 15
Accepted
time: 90ms
memory: 49664kb
input:
10 200000 6 7 1 8 2 5 8 5 4 3 3 2 8 5 5 8 9 6 4 7 1 3 7 5 2 3 6 4 8 1 4 8 6 7 9 0 8 4 3 2 6 2 4 5 6 8 5 1 6 4 9 3 1 7 2 4 0 7 9 8 8 4 6 0 0 9 8 3 0 2 5 4 7 0 3 0 2 9 4 0 1 2 2 9 0 1 5 3 8 9 1 6 2 7 4 3 4 1 8 9 0 9 4 7 8 1 6 7 6 5 3 6 8 7 7 1 5 6 4 1 4 0 9 7 6 3 1 4 8 1 1 9 5 2 7 3 1 5 1 4 9 0 5 7 0 ...
output:
85 101910 54 16918 28629 1 87 15 40 52261
result:
ok single line: '85 101910 54 16918 28629 1 87 15 40 52261 '
Test #119:
score: 15
Accepted
time: 262ms
memory: 63072kb
input:
200000 200000 3178 172830 72570 20079 62524 129404 119911 29557 120699 159987 172659 69499 20018 11226 96100 55912 13217 127683 59340 102909 1616 143070 156854 186437 100305 76023 75687 174276 106004 180350 90554 55125 117131 119027 138085 19983 484 80297 163960 91693 95096 141025 17806 40486 88457 ...
output:
0 0 0 0 0 0 0 0 0 3 0 8 0 0 0 0 31 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 3 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 32 0 0 0 0 0 0 0 0 0 1 0 0 14 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5...
result:
ok single line: '0 0 0 0 0 0 0 0 0 3 0 8 0 0 0 ...0 0 0 0 35 0 0 0 0 0 0 0 0 0 0 '
Test #120:
score: 15
Accepted
time: 4ms
memory: 33636kb
input:
3 4 0 1 2 1 1 0 2 1
output:
1 1 2
result:
ok single line: '1 1 2 '
Test #121:
score: 15
Accepted
time: 4ms
memory: 33904kb
input:
3 7 0 1 0 2 2 0 0 1 1 0 2 0 0 2
output:
2 2 3
result:
ok single line: '2 2 3 '
Test #122:
score: 15
Accepted
time: 4ms
memory: 34156kb
input:
6 10 2 5 3 0 4 2 0 1 4 3 2 4 0 3 0 2 5 2 5 0
output:
5 0 1 1 1 2
result:
ok single line: '5 0 1 1 1 2 '
Extra Test:
score: 0
Extra Test Passed