QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#749760 | #6528. Sequence | KiharaTouma | 100 ✓ | 754ms | 59408kb | C++23 | 4.1kb | 2024-11-15 10:01:02 | 2024-11-15 10:01:03 |
Judging History
answer
//qoj6528
#include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 10;
int n, a[N];
basic_string<int> pos[N];
struct node{
int A, B, lmn, lmx;
int mnA, mxB;
} t[N*4];
void upd(node &x, node &y, node &z){
x.A = y.A + z.A;
x.B = y.B + z.B;
x.lmn = min(z.lmn, z.A + y.lmn);
x.lmx = max(z.lmx, z.A + y.lmx);
x.mnA = min(z.mnA, z.A + y.mnA);
x.mxB = max(z.mxB, z.B + y.mxB);
}
void add(int p, int l, int r, int x, int op, int v){
if(x < 1 || x > n){
return;
}
if(l == r){
if(op == 1){
t[p].A = t[p].mnA = v;
t[p].lmn = min(0, v);
t[p].lmx = max(0, v);
} else {
t[p].B = t[p].mxB = v;
}
} else {
int mid = l + r >> 1;
if(x <= mid){
add(p<<1, l, mid, x, op, v);
} else {
add(p<<1|1, mid+1, r, x, op, v);
}
upd(t[p], t[p<<1], t[p<<1|1]);
}
}
node qry(int p, int l, int r, int ql, int qr){
if(qr < ql){
return {0, 0, 0, 0};
}
if(ql <= l && r <= qr){
return t[p];
} else {
int mid = l + r >> 1;
if(qr <= mid){
return qry(p<<1, l, mid, ql, qr);
} else if(mid < ql){
return qry(p<<1|1, mid+1, r, ql, qr);
} else {
node x;
node y = qry(p<<1, l, mid, ql, qr);;
node z = qry(p<<1|1, mid+1, r, ql, qr);
upd(x, y, z);
return x;
}
}
}
int qcnt(int l, int r){
if(l > r){
return 0;
}
node tmp = qry(1, 1, n, l, r);
return (tmp.A - tmp.B) / 2;
}
int qmna(int p, int l, int r, int v){
if(l == r){
return t[p].mnA <= v ? l : -1;
} else {
int mid = l + r >> 1;
if(t[p<<1|1].mnA <= v){
return qmna(p<<1|1, mid+1, r, v);
} else {
return qmna(p<<1, l, mid, v-t[p<<1|1].A);
}
}
}
int qmxb(int p, int l, int r, int v){
if(l == r){
return t[p].mxB >= v ? l : -1;
} else {
int mid = l + r >> 1;
if(t[p<<1|1].mxB >= v){
return qmxb(p<<1|1, mid+1, r, v);
} else {
return qmxb(p<<1, l, mid, v-t[p<<1|1].B);
}
}
}
int sequence(int nN, std:: vector<int> A){
n = nN;
int nw = 1, sumr = n, suml = n;
for(int i = 1; i <= n; ++ i){
pos[i].push_back(0);
}
for(int i = 1; i <= n; ++ i){
a[i] = A[i-1];
pos[a[i]].push_back(i);
add(1, 1, n, i, 1, 1);
add(1, 1, n, i, 2, 1);
}
for(int i = 1; i <= n; ++ i){
pos[i].push_back(n + 1);
}
for(int i = 1; i <= n; ++ i){
int len = pos[i].size() - 2;
for(int j = 1; j <= len; ++ j){
add(1, 1, n, pos[i][j], 2, -1);
suml -= 2;
}
for(int j = 1; j <= len; ++ j){
int ans = 0;
int l = pos[i][j], le = pos[i][j-1] + 1;
node tmp = qry(1, 1, n, le, l-1);
int kmn = -tmp.lmx, kmx = -tmp.lmn;
tmp = qry(1, 1, n, 1, l-1);
int sr = sumr - tmp.A, sl = suml - tmp.B;
if(sl <= kmx && kmx <= sr){
ans = qcnt(l, n);
} else if(sl <= kmn && kmn <= sr){
ans = qcnt(l, n);
} else if(sr < kmn){
ans = qcnt(l, qmna(1, 1, n, sr - kmn));
} else if(kmx < sl){
ans = qcnt(l, qmxb(1, 1, n, sl - kmx));
} else {
ans = qcnt(l, n);
}
nw = max(nw, ans);
}
for(int j = 1; j <= len; ++ j){
add(1, 1, n, pos[i][j], 1, -1);
sumr -= 2;
}
}
return nw;
}
#ifndef ONLINE_JUDGE
int main(){
freopen("1.in", "r" ,stdin);
freopen("1.out", "w", stdout);
int n;
vector<int> v;
scanf("%d", &n);
for(int i = 1; i <= n; ++ i){
int p;
scanf("%d", &p);
v.push_back(p);
}
printf("%d\n", sequence(n, v));
return 0;
}
#endif
詳細信息
Subtask #1:
score: 11
Accepted
Test #1:
score: 11
Accepted
time: 0ms
memory: 22500kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 98 92 89 9 86 80 6 42 20 84 82 46 56 52 30 44 39 35 82 57 33 18 38 32 63 27 55 33 44 41 39 62 26 46 59 21 85 36 60 7 36 50 22 87 83 71 27 4 3 87 47 17 62 70 24 9 20 81 21 57 50 13 32 68 70 11 95 5 56 64 90 47 42 44 72 71 46 84 72 56 63 37 35 80 78 4 54 74 79 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 3
result:
ok
Test #2:
score: 11
Accepted
time: 0ms
memory: 20192kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 96 1 6 1 4 6 2 5 1 1 2 8 2 4 4 1 9 8 9 8 5 3 6 6 4 9 4 2 8 8 8 2 9 1 3 6 6 1 6 5 5 3 7 9 7 1 8 5 6 8 5 1 1 4 9 6 7 2 6 6 7 4 2 2 8 5 6 4 8 2 6 5 8 6 1 6 2 1 3 4 6 3 6 8 2 5 7 8 2 4 1 5 6 2 3 6 6
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 18
result:
ok
Test #3:
score: 11
Accepted
time: 0ms
memory: 22216kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 99 1 3 5 1 2 4 1 3 4 1 5 5 3 1 1 4 2 1 4 5 5 4 1 4 4 2 1 2 2 1 5 2 4 2 1 5 1 3 3 4 3 2 3 1 3 2 2 4 1 5 4 2 2 2 4 5 3 4 3 2 3 4 5 4 5 1 2 2 2 5 3 1 3 5 1 2 1 2 1 2 3 1 4 4 4 5 3 3 3 5 1 3 4 2 4 4 2 1 2
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 19
result:
ok
Test #4:
score: 11
Accepted
time: 5ms
memory: 22300kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 100 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 100
result:
ok
Test #5:
score: 11
Accepted
time: 2ms
memory: 22468kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 97 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 8...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 1
result:
ok
Test #6:
score: 11
Accepted
time: 4ms
memory: 22304kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 100 48 40 13 1 8 31 46 19 42 9 13 8 33 43 85 9 36 21 83 49 4 49 49 24 49 82 9 88 24 33 23 99 79 46 83 49 2 4 40 92 49 44 92 99 49 49 38 49 12 29 49 89 100 81 79 85 22 38 49 8 27 29 3 100 100 42 82 49 31 26 40 49 46 10 49 49 84 77 93 20 33 90 49 18 49 49 18 84...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 18
result:
ok
Test #7:
score: 11
Accepted
time: 3ms
memory: 20264kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 97 42 47 7 23 9 10 53 75 53 53 2 1 75 14 4 16 53 35 32 37 97 31 47 91 77 84 53 87 93 85 70 80 2 19 53 53 67 85 25 3 37 41 52 21 30 84 25 15 37 30 97 53 22 97 33 97 53 9 69 38 71 6 74 4 13 26 27 90 91 47 11 90 7 76 97 17 80 53 23 95 73 53 1 21 43 42 2 33 29 32...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 11
result:
ok
Test #8:
score: 11
Accepted
time: 3ms
memory: 22500kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 98 72 73 8 81 47 26 17 61 93 69 95 7 25 42 15 45 17 88 42 94 68 49 23 50 93 42 97 43 11 7 83 42 43 42 57 12 76 54 61 76 71 42 62 87 87 7 42 83 92 47 72 66 88 1 23 51 42 26 74 42 84 70 59 42 83 14 60 81 53 56 42 20 56 8 92 69 42 76 42 24 87 70 4 80 79 61 66 93...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 5
result:
ok
Test #9:
score: 11
Accepted
time: 0ms
memory: 20196kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 99 85 88 94 94 59 47 63 75 75 40 38 35 59 56 81 48 96 47 46 34 96 62 35 46 83 34 95 34 69 48 15 10 3 92 67 34 38 92 84 84 42 49 86 63 82 65 39 89 80 14 34 69 55 42 67 34 68 86 15 72 18 96 2 7 1 89 16 68 65 97 52 38 92 34 87 16 2 62 34 18 34 74 34 8 21 77 45 8...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 7
result:
ok
Subtask #2:
score: 17
Accepted
Dependency #1:
100%
Accepted
Test #10:
score: 17
Accepted
time: 3ms
memory: 22336kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1999 486 1494 1286 1247 138 393 816 1646 971 1657 1284 1320 702 194 602 1775 13 1856 61 1264 1005 681 1679 1174 718 1781 1407 97 365 1949 1805 1609 1066 637 98 1686 1361 584 146 1879 941 62 1433 1850 729 1754 71 1292 1945 1328 1705 362 591 407 998 1909 1690 2...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 4
result:
ok
Test #11:
score: 17
Accepted
time: 5ms
memory: 20252kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1996 1475 182 1399 123 1593 884 1167 1543 663 302 16 217 1284 1777 1875 1996 1238 1368 52 1935 881 235 1437 1002 1000 1473 1248 540 139 282 850 451 797 1595 803 1050 293 1827 1677 1323 1617 1760 13 151 1329 74 1828 1609 532 1224 103 685 1040 48 88 238 501 873...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 3
result:
ok
Test #12:
score: 17
Accepted
time: 2ms
memory: 22340kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1996 12 36 13 34 17 23 24 32 24 36 28 31 27 19 26 31 24 6 42 32 19 43 25 32 13 39 34 39 24 29 15 32 16 28 36 2 3 37 7 42 34 11 43 25 31 17 43 24 27 43 6 28 17 25 33 44 41 14 27 11 2 5 20 20 7 17 11 19 8 16 2 26 20 43 4 7 43 42 15 19 40 14 31 24 39 16 13 23 19...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 52
result:
ok
Test #13:
score: 17
Accepted
time: 0ms
memory: 22336kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1998 25 16 15 17 25 1 7 36 24 40 30 2 34 13 38 39 33 1 5 4 3 37 36 17 41 29 21 29 19 12 2 38 18 2 42 11 40 39 21 18 43 26 9 10 11 36 36 38 12 13 8 28 23 26 3 44 32 33 18 15 15 27 18 9 25 36 16 27 4 30 10 26 35 27 43 5 29 33 8 14 43 42 6 12 34 6 28 22 30 3 24 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 49
result:
ok
Test #14:
score: 17
Accepted
time: 0ms
memory: 22628kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1999 4 5 1 2 5 4 4 4 2 5 3 5 3 3 1 2 5 5 2 3 3 2 2 4 5 3 4 3 2 1 4 2 3 5 2 2 2 5 4 3 5 1 4 2 5 4 3 2 5 3 4 3 5 2 1 1 4 3 2 5 2 1 5 3 5 3 2 4 5 4 1 2 1 2 1 4 3 5 5 2 1 3 3 4 4 4 2 5 4 2 1 2 4 2 5 3 1 1 4 2 3 4 5 2 5 1 3 3 1 2 2 5 1 5 5 4 4 3 2 2 5 4 1 2 3 1 5 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 378
result:
ok
Test #15:
score: 17
Accepted
time: 0ms
memory: 22400kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1999 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 1
result:
ok
Test #16:
score: 17
Accepted
time: 2ms
memory: 22296kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1997 831 845 694 533 66 466 615 401 522 181 171 87 245 250 581 66 257 441 723 212 992 910 126 106 798 939 845 214 654 754 761 109 684 708 167 693 44 255 492 586 122 295 637 565 827 487 436 630 97 454 117 814 403 306 637 822 223 327 105 95 996 416 650 181 917 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 261
result:
ok
Test #17:
score: 17
Accepted
time: 4ms
memory: 22332kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1998 696 737 209 283 554 1052 842 822 892 502 136 1036 301 8 855 900 228 338 233 954 326 410 770 850 455 582 579 993 213 319 562 894 541 947 1010 14 743 908 277 859 458 763 463 816 923 585 880 618 352 622 780 619 11 429 133 180 258 139 807 753 350 197 616 471...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 398
result:
ok
Test #18:
score: 17
Accepted
time: 6ms
memory: 20620kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1997 657 1176 941 515 903 1021 551 1103 491 661 1188 961 1073 923 78 355 1094 1112 1092 1006 1243 297 92 1052 223 1005 61 123 116 771 250 1080 874 1238 1046 128 360 1119 212 451 1173 13 303 443 303 1198 119 467 361 1168 784 1062 369 685 366 126 436 272 1141 8...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 29
result:
ok
Test #19:
score: 17
Accepted
time: 5ms
memory: 20324kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 1997 1079 227 1250 808 655 731 548 961 966 324 922 1264 376 203 925 805 692 1086 186 832 399 817 899 917 317 1056 737 246 936 180 90 1277 375 790 1006 934 1055 24 1138 1017 265 601 970 1160 600 994 262 340 20 1197 889 1251 885 522 106 972 602 616 990 332 1159...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 30
result:
ok
Subtask #3:
score: 7
Accepted
Test #20:
score: 7
Accepted
time: 522ms
memory: 57472kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499996 53 78 81 111 119 124 126 130 164 175 219 227 233 249 282 298 332 341 348 436 437 448 452 455 462 465 495 535 557 558 576 600 620 627 632 642 643 659 695 696 713 730 743 805 816 865 869 872 875 882 883 902 924 937 990 998 1025 1092 1137 1145 1166 1176 1...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 8
result:
ok
Test #21:
score: 7
Accepted
time: 556ms
memory: 57376kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499996 5 7 11 19 19 19 19 23 23 27 29 31 32 33 34 37 37 40 45 49 53 57 67 69 70 76 79 80 82 82 84 89 91 96 105 109 109 109 110 111 112 113 116 119 120 121 122 129 133 135 136 142 145 147 148 151 155 160 161 162 162 171 174 177 178 179 180 181 185 189 191 192 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 9
result:
ok
Test #22:
score: 7
Accepted
time: 489ms
memory: 53272kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 100281
result:
ok
Test #23:
score: 7
Accepted
time: 548ms
memory: 57464kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 1 7 8 11 15 17 18 19 19 20 22 24 29 33 33 35 37 39 46 47 48 49 49 49 52 54 57 60 60 62 62 63 68 70 71 72 72 78 79 79 85 86 86 92 94 94 97 99 100 100 106 108 110 114 116 118 119 122 125 127 128 133 133 134 136 137 144 144 145 148 152 153 153 153 160 161...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 9
result:
ok
Test #24:
score: 7
Accepted
time: 531ms
memory: 57440kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499996 18 24 36 39 56 61 85 128 159 164 225 240 252 254 258 263 313 365 387 387 396 439 443 476 481 489 509 526 547 582 583 584 631 635 645 673 679 699 709 724 728 731 741 757 768 785 785 817 827 828 834 836 846 851 858 864 892 900 908 920 920 922 929 962 989...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 11
result:
ok
Test #25:
score: 7
Accepted
time: 489ms
memory: 53632kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499996 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 8818
result:
ok
Test #26:
score: 7
Accepted
time: 487ms
memory: 52752kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 7068
result:
ok
Test #27:
score: 7
Accepted
time: 475ms
memory: 53492kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499998 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 176759
result:
ok
Subtask #4:
score: 12
Accepted
Test #28:
score: 12
Accepted
time: 462ms
memory: 55580kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499999 2 1 2 2 2 1 2 3 1 3 1 2 2 1 2 1 1 2 1 1 2 1 1 2 1 2 1 1 1 1 1 2 2 1 1 2 1 1 1 2 1 2 1 1 1 2 3 3 3 3 1 3 1 2 2 1 1 1 3 1 3 1 1 2 1 2 2 2 1 3 2 1 1 1 2 2 1 2 2 3 1 2 2 1 2 2 1 1 2 1 1 2 2 1 2 2 1 1 1 1 2 2 1 1 1 1 1 2 1 1 2 1 1 3 2 1 1 1 3 1 1 2 1 3 1 1 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 277713
result:
ok
Test #29:
score: 12
Accepted
time: 449ms
memory: 53064kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499999 2 3 1 3 3 3 1 2 3 3 3 2 2 1 1 3 1 2 1 3 3 3 2 2 2 2 3 3 2 2 2 1 1 2 3 3 1 3 1 1 2 3 3 1 1 1 2 1 1 1 2 3 2 2 1 2 1 1 3 1 1 1 3 1 1 2 1 3 2 3 1 3 1 3 3 2 1 3 1 2 1 3 2 1 1 2 3 1 2 1 3 3 1 2 1 3 3 3 2 3 2 1 1 2 1 2 3 1 1 2 2 1 3 2 3 2 3 2 2 1 3 2 3 1 3 3 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 166105
result:
ok
Test #30:
score: 12
Accepted
time: 468ms
memory: 53396kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499997 3 1 2 1 1 1 1 3 2 1 2 2 3 2 2 3 3 3 3 3 1 1 2 1 3 2 1 1 2 2 3 1 1 2 1 3 2 2 1 2 1 3 3 2 2 1 3 1 3 2 2 3 3 2 3 1 2 3 2 1 3 2 2 1 3 2 3 2 1 3 3 1 2 1 1 2 1 2 3 1 2 3 1 3 2 3 3 1 3 1 2 1 3 2 1 3 1 2 1 2 2 1 1 2 2 1 3 3 2 3 1 3 3 3 2 1 1 2 2 2 1 1 2 1 1 2 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 167067
result:
ok
Test #31:
score: 12
Accepted
time: 448ms
memory: 52516kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499996 3 2 3 3 3 1 2 3 2 2 2 2 2 2 2 3 2 2 3 1 3 1 3 2 1 2 2 3 3 3 3 1 2 1 2 2 3 2 2 2 3 3 2 2 2 1 2 2 2 3 3 2 3 3 3 3 3 2 1 3 3 2 3 3 3 3 2 2 3 3 2 1 2 2 3 3 2 3 1 1 3 2 3 2 1 3 3 2 3 3 3 1 3 2 2 3 3 2 2 3 2 3 3 2 3 3 3 2 1 1 3 3 1 2 3 3 1 3 2 3 3 3 3 3 3 2 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 277892
result:
ok
Test #32:
score: 12
Accepted
time: 449ms
memory: 53052kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 125000
result:
ok
Subtask #5:
score: 13
Accepted
Test #33:
score: 13
Accepted
time: 654ms
memory: 51120kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499999 490225 471440 499001 369862 494577 479599 486292 476071 471988 486939 482356 482290 497141 488452 495446 494292 404798 493826 482595 481107 447196 477441 418064 495941 448927 483365 418585 489220 443224 482574 487957 467944 493253 472016 475543 442250 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 1
result:
ok
Test #34:
score: 13
Accepted
time: 666ms
memory: 51272kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499999 490225 471440 499001 369862 494577 479599 486292 476071 471988 486939 482356 482290 497141 488452 495446 494292 404798 493826 482595 481107 447196 477441 418064 495941 448927 483365 418585 489220 443224 482574 487957 467944 493253 472016 475543 442250 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 1
result:
ok
Test #35:
score: 13
Accepted
time: 659ms
memory: 52024kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499999 8693 471440 17469 369862 13045 479599 4760 476071 471988 5407 824 758 15609 6920 13914 12760 404798 12294 1063 481107 447196 477441 418064 14409 448927 1833 418585 7688 443224 1042 6425 467944 11721 472016 475543 442250 17475 477814 477933 468083 40726...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 2
result:
ok
Test #36:
score: 13
Accepted
time: 663ms
memory: 51944kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499999 8693 471440 17469 369862 13045 479599 4760 476071 471988 5407 824 758 15609 6920 13914 12760 404798 12294 1063 481107 447196 477441 418064 14409 448927 1833 418585 7688 443224 1042 6425 467944 11721 472016 475543 442250 17475 477814 477933 468083 40726...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 2
result:
ok
Test #37:
score: 13
Accepted
time: 634ms
memory: 56852kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 2
result:
ok
Test #38:
score: 13
Accepted
time: 634ms
memory: 56868kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 1
result:
ok
Test #39:
score: 13
Accepted
time: 568ms
memory: 58736kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 1
result:
ok
Test #40:
score: 13
Accepted
time: 576ms
memory: 59408kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 2
result:
ok
Subtask #6:
score: 22
Accepted
Dependency #2:
100%
Accepted
Test #41:
score: 22
Accepted
time: 93ms
memory: 28692kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79997 36415 18516 420 60790 49058 32960 27785 69895 74029 21962 53361 43308 54680 77334 61363 1780 62171 23208 1130 78835 79364 37259 45646 54570 72797 56842 34418 10553 28532 11521 52797 29973 58123 42899 62212 289 4565 10345 73305 14960 70036 68229 4746 966...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 4
result:
ok
Test #42:
score: 22
Accepted
time: 97ms
memory: 28752kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79999 2369 72165 32418 54146 24301 41563 21615 7699 33072 35456 26173 19486 73698 33688 59226 47763 1541 58849 15638 51371 18405 57808 79167 49678 74972 71469 32184 65387 51189 50533 63690 31471 54573 14815 65689 75314 10202 4298 61619 53050 73668 1041 32184 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 5
result:
ok
Test #43:
score: 22
Accepted
time: 96ms
memory: 29224kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79997 71636 54641 63515 75818 10828 13847 26543 26886 13803 30149 6575 6649 69980 23394 16782 11489 11513 66240 73286 53498 5285 66541 5949 18887 26181 14675 75092 42126 58501 60681 72961 60057 5928 24667 41569 50240 78722 65324 51958 49064 22821 41202 79834 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 4
result:
ok
Test #44:
score: 22
Accepted
time: 91ms
memory: 28892kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79997 149 68 250 40 13 74 132 43 45 54 217 176 91 231 20 158 13 182 71 96 149 47 55 97 9 61 107 263 38 183 129 204 195 132 232 61 25 110 6 258 30 70 265 98 274 37 31 46 112 234 217 53 99 262 177 5 144 242 136 148 159 4 202 160 79 2 64 44 95 3 254 11 182 202 1...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 311
result:
ok
Test #45:
score: 22
Accepted
time: 89ms
memory: 29664kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79998 55 115 154 115 29 27 198 38 207 97 206 95 270 111 9 101 164 216 200 207 177 37 227 84 74 92 41 44 129 148 94 109 117 108 150 33 149 171 263 191 176 76 163 172 255 141 73 70 235 16 21 109 63 240 13 170 213 20 264 61 68 54 264 93 186 148 157 134 101 130 1...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 313
result:
ok
Test #46:
score: 22
Accepted
time: 93ms
memory: 28404kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 80000 35 275 60 121 246 211 20 272 146 146 192 226 253 176 252 112 28 190 104 111 136 121 25 217 30 109 49 96 247 183 46 118 97 105 202 203 150 185 83 95 86 29 119 98 221 274 260 73 247 21 269 142 126 132 71 32 89 82 250 242 143 70 275 41 147 146 260 22 155 2...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 275
result:
ok
Test #47:
score: 22
Accepted
time: 67ms
memory: 29580kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79998 3 5 4 3 2 5 5 2 2 3 4 4 1 3 5 2 5 2 4 5 4 5 3 1 1 3 3 4 3 1 2 1 1 5 1 2 2 3 1 2 3 5 3 3 3 3 1 4 5 2 2 5 2 2 3 5 4 2 1 2 4 1 4 1 1 5 1 5 2 5 1 1 1 4 2 5 1 1 5 5 5 1 5 1 4 2 2 3 1 1 4 2 2 1 1 5 2 1 3 4 5 3 5 4 2 4 1 1 3 2 3 5 1 1 5 4 4 4 5 2 3 5 3 5 2 5 2...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 15817
result:
ok
Test #48:
score: 22
Accepted
time: 68ms
memory: 28576kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79998 4 1 1 1 5 4 3 1 1 4 3 1 5 4 5 5 3 5 2 5 2 4 2 2 5 1 2 1 5 1 3 4 2 3 2 2 5 2 1 2 1 4 3 3 2 3 1 3 4 3 2 2 1 2 5 2 1 1 2 2 1 1 1 4 1 2 4 5 5 5 4 4 5 3 4 3 1 2 4 1 4 5 3 2 3 2 4 4 5 2 1 5 1 3 3 5 1 1 4 2 1 1 4 4 5 2 2 4 3 4 3 3 2 4 4 1 4 4 3 2 3 3 4 3 1 2 2...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 16034
result:
ok
Test #49:
score: 22
Accepted
time: 59ms
memory: 30904kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79996 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 46264 4...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 79996
result:
ok
Test #50:
score: 22
Accepted
time: 67ms
memory: 29312kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79999 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 8...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 1
result:
ok
Test #51:
score: 22
Accepted
time: 93ms
memory: 28752kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79999 62557 54115 63685 43356 64818 64586 79349 77356 41330 40364 58557 67912 75029 75261 41739 57089 48875 76675 50519 53949 44231 51337 60347 65214 73153 77774 59501 68638 46104 46374 79208 71027 42143 41676 43779 54113 49795 74574 54429 69536 75294 71917 6...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 9862
result:
ok
Test #52:
score: 22
Accepted
time: 94ms
memory: 29880kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79997 27575 13483 28346 14285 14914 3379 5086 7591 2198 31337 7303 31403 12965 8490 35650 32504 17852 1280 17880 26640 26034 39333 29031 19342 18179 5938 21276 13311 13869 6363 34550 6598 5498 6170 937 15564 33382 24657 37644 25324 37511 13595 13242 9567 2430...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 8807
result:
ok
Test #53:
score: 22
Accepted
time: 93ms
memory: 28876kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79997 52736 67305 65914 56940 63641 49250 46810 58347 52085 48628 42503 74158 65584 79847 65681 79484 68301 62194 62342 63293 69784 50461 57253 79110 42193 42876 49987 70330 78576 65097 76689 61117 65600 67661 46560 77202 42136 52391 69132 64515 63338 68002 5...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 12522
result:
ok
Test #54:
score: 22
Accepted
time: 91ms
memory: 28980kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79998 61286 32983 44109 30329 68210 69740 51748 58074 75196 52516 40451 63345 45049 35584 77200 51800 79528 44901 73432 33935 48084 47419 67347 42425 63975 54935 47972 63731 65512 78008 41519 67309 42802 50180 42580 45471 33012 79801 61200 56087 66204 55638 6...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 76
result:
ok
Test #55:
score: 22
Accepted
time: 92ms
memory: 30040kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79999 50334 51757 54816 63684 29666 68399 67533 36811 51420 67310 29594 37759 51160 70325 48955 76529 42418 44550 41632 30778 57812 73512 36854 44214 48434 38126 50668 56583 63796 34622 59409 44511 47249 38692 59127 34026 39565 58068 66302 40933 73447 39579 3...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 46
result:
ok
Test #56:
score: 22
Accepted
time: 88ms
memory: 29436kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 79996 22562 2963 19942 17563 39171 46717 13655 29802 24974 5889 46977 46106 11331 8899 38661 35807 11374 43020 16610 29814 4892 33348 7919 34404 36754 47615 9598 32448 45850 41725 15848 16914 7328 44954 37669 13068 8335 17211 41286 2366 34543 8010 8697 13232 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 55
result:
ok
Subtask #7:
score: 18
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
Test #57:
score: 18
Accepted
time: 735ms
memory: 57204kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499996 373487 348642 150518 88883 70371 26464 352357 114984 3853 35082 343986 468287 109914 466135 187459 364220 91685 350994 259641 363052 32405 101572 428752 274262 211792 84303 448047 236167 207170 42152 120076 88342 380600 44394 343532 429704 332702 16732...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 5
result:
ok
Test #58:
score: 18
Accepted
time: 754ms
memory: 57280kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499997 351396 182934 215217 131342 136437 124878 405608 345271 223864 371738 103589 221857 155095 126409 400975 369063 172658 25422 35260 348664 342115 431832 168706 196021 435989 372161 400806 427960 212469 274134 462796 157177 41508 422515 132214 19085 2087...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 5
result:
ok
Test #59:
score: 18
Accepted
time: 737ms
memory: 57084kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 401162 202928 73366 367118 140043 139806 23504 419609 305297 362653 403738 315470 364546 262252 467914 62695 446346 256526 13619 281694 153808 310614 344987 212582 485287 88215 464835 222205 95590 266550 256422 94348 421398 56080 296479 454894 377037 1...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 6
result:
ok
Test #60:
score: 18
Accepted
time: 679ms
memory: 52376kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499996 490 205 410 604 265 619 303 385 263 260 432 490 240 268 369 517 186 546 356 40 460 398 392 379 250 328 393 295 257 9 472 426 428 513 638 276 656 343 350 278 233 192 633 659 285 189 497 635 43 146 290 101 665 399 563 613 9 534 456 104 646 697 672 205 60...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 702
result:
ok
Test #61:
score: 18
Accepted
time: 676ms
memory: 51800kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499999 687 173 79 568 343 215 668 72 244 56 225 452 480 228 499 366 316 83 153 105 35 672 544 693 241 331 447 622 214 349 208 503 183 697 561 598 151 139 236 124 55 107 46 433 27 548 634 260 38 241 141 207 668 504 252 217 622 314 240 214 104 215 185 611 624 5...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 678
result:
ok
Test #62:
score: 18
Accepted
time: 666ms
memory: 53632kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499998 680 577 391 646 359 5 388 484 114 655 599 561 266 216 583 420 251 347 684 164 191 379 390 532 563 381 333 233 499 705 705 640 483 558 106 683 698 133 268 459 407 50 211 351 430 677 66 559 224 555 494 196 137 603 475 271 97 53 569 45 633 363 15 607 315 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 658
result:
ok
Test #63:
score: 18
Accepted
time: 489ms
memory: 53544kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499996 4 4 3 1 1 3 5 4 4 1 4 2 1 5 2 3 1 1 3 2 2 1 1 1 3 2 1 3 2 5 2 1 3 1 2 4 1 1 1 4 1 2 1 3 2 2 2 4 3 4 4 5 5 2 1 5 5 1 2 4 2 4 2 1 1 3 1 1 3 5 3 4 5 5 3 2 2 3 4 2 3 2 1 2 5 2 5 1 4 1 2 1 4 2 1 1 1 4 2 1 4 3 5 2 1 5 1 2 3 5 2 5 4 4 2 4 1 2 4 5 3 5 5 4 5 2 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 99688
result:
ok
Test #64:
score: 18
Accepted
time: 487ms
memory: 53496kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499998 4 5 5 1 1 2 3 3 2 2 3 2 3 2 2 1 4 2 1 3 1 1 1 3 5 5 2 2 1 2 4 2 5 4 5 4 2 2 2 3 5 5 2 2 4 1 1 2 3 4 3 3 5 5 5 5 5 3 3 3 1 3 3 4 1 4 3 5 4 4 1 2 3 4 2 4 4 3 4 4 4 1 3 1 5 3 4 1 1 4 4 2 2 1 5 4 3 1 1 3 4 4 5 5 4 5 3 1 1 4 2 5 3 1 5 3 2 1 3 2 3 4 3 2 5 1 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 100071
result:
ok
Test #65:
score: 18
Accepted
time: 435ms
memory: 53988kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499999 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 460492 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 499999
result:
ok
Test #66:
score: 18
Accepted
time: 529ms
memory: 50900kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499997 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 1
result:
ok
Test #67:
score: 18
Accepted
time: 718ms
memory: 54996kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499998 368796 429664 324465 354303 278018 319591 271703 419862 252715 309061 286968 286449 327490 474962 489955 405451 435870 354502 342800 442176 293432 448988 302888 312238 286446 430721 426714 331442 261952 467395 463895 426447 280993 488380 462744 414342 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 57814
result:
ok
Test #68:
score: 18
Accepted
time: 717ms
memory: 56664kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499998 475836 447795 409857 467450 404092 428140 316847 289125 425623 374205 332529 409350 437052 457852 300690 453509 254243 454475 432846 400556 288251 445049 498570 385287 478014 419471 330824 420033 448378 299460 322291 331956 412720 478339 358653 267005 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 67186
result:
ok
Test #69:
score: 18
Accepted
time: 710ms
memory: 55080kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499997 198367 112253 17840 192632 91465 231158 125921 137638 158646 82769 211774 131920 96539 55049 93925 70632 92880 62528 199238 478 219284 65237 178140 41235 204130 195988 68119 175525 83516 67946 196930 144174 72896 130382 169549 64797 73462 210600 196979...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 80282
result:
ok
Test #70:
score: 18
Accepted
time: 719ms
memory: 56816kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499998 403784 199389 446144 483188 336473 375203 386562 405393 368835 259359 209193 201157 376486 262571 252485 295721 411435 224845 246068 278698 309487 348059 218097 463459 276950 244156 411959 294022 265049 362554 459258 373827 474126 259856 259297 345425 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 68
result:
ok
Test #71:
score: 18
Accepted
time: 691ms
memory: 56556kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 500000 363286 425688 229346 405498 346231 272115 330906 497584 333960 420019 243442 318979 383558 227829 218720 477074 430859 324235 479804 301544 425507 309511 477364 338287 393389 372920 326577 271751 390705 330763 221844 471778 480936 477253 425207 404448 ...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 79
result:
ok
Test #72:
score: 18
Accepted
time: 714ms
memory: 56032kb
input:
8wq90di9812978rqwiok0k0o21klklm21oiwi121 499999 142254 162636 111156 114503 103743 204939 76296 132694 75533 165331 139967 120537 217754 240507 284530 107838 33178 195780 200103 166326 214296 192653 59832 131321 241644 55001 142154 186073 271141 114775 292916 284762 73603 154659 247294 261294 303348...
output:
nfp39szm23aa01pcmyosi03slwpeksnfjri3opqp OK 78
result:
ok