QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#119337 | #6669. Mapa | Linshey# | 92.4 | 1ms | 4144kb | C++14 | 3.7kb | 2023-07-05 10:27:16 | 2024-07-04 00:13:41 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std; const int N = 128, M = 20000;
unsigned k[N], v[N];
unsigned seed;
inline unsigned rnd(unsigned x) { return (unsigned long long)k[x] * seed % 998244353 ^ seed ^ k[x]; }
char s[M]; int t;
inline void print_(unsigned x, int pr)
{
int l = x ? 31 - __builtin_clz(x) : -1;
for (int i = pr; i <= l; i++) s[t++] = '1'; s[t++] = '0';
for (int i = max(pr - 1, l); i >= 0; i--) s[t++] = (x >> i & 1) + '0';
}
inline unsigned read_(int pr)
{
int l = pr; unsigned res = 0;
while (s[t++] == '1') l++;
while (l--) res = res << 1 | (s[t++] - '0');
return res;
}
inline void Print(unsigned x)
{
for (int i = 29; i >= 0; i--) s[t++] = (x >> i & 1) + '0';
}
inline unsigned Read()
{
int l = 30; unsigned res = 0;
while (l--) res = res << 1 | (s[t++] - '0');
return res;
}
unsigned pos[N];
int mp[8];
mt19937 rng(23333);
inline int get(int n) { return n <= 13 ? 2 : (n <= 25 ? 3 : (n <= 50 ? 5 : (31 - __builtin_clz(n) >> 1))); }
void Solve0(vector<int> ss)
{
int n = ss.size();
if (n <= 8)
{
int x = 0, y;
do
{
y = 0, seed = rng(), x++;
// assert(x <= 100000);
memset(mp, 0, sizeof(int) * 8);
for (int z : ss) if (mp[rnd(z) % (n * 13) / 13]++) { y = 1; break; }
}
while (y != 0);
// cerr << n << ' ' << x << endl;
print_(x, n <= 6 ? 7 : 8);
// cerr << "?" << seed << endl;
// cerr << "Solve0: " << n << ' ' << x << endl;
for (int z : ss) pos[z] += (rnd(z) % (n * 13) / 13);
}
else
{
int tar = n >> 1;
int x = 0, y;
do
{
y = 0, seed = rng(), x++;
// assert(x <= 100000);
for (int z : ss) y += (rnd(z) % 19260818 < 9630409);
}
while (y != tar);
cerr << n << ' ' << x << endl;
print_(x, get(n));
// cerr << "!" << seed << endl;
// cerr << "Solve0: " << n << ' ' << x << endl;
vector<int> s0, s1;
for (int z : ss) if (rnd(z) % 19260818 < 9630409) pos[z] += n - tar, s0.push_back(z); else s1.push_back(z);
Solve0(s0), Solve0(s1);
}
}
void Solve1(vector<int> ss, int n)
{
if (n <= 8)
{
int x = read_(n <= 6 ? 7 : 8); while (x--) seed = rng();
// cerr << "?" << seed << endl;
for (int z : ss) pos[z] += (rnd(z) % (n * 13) / 13);
}
else
{
int tar = n >> 1;
int x = read_(get(n)); while (x--) seed = rng();
// cerr << "!" << seed << endl;
vector<int> s0, s1;
for (int z : ss) if (rnd(z) % 19260818 < 9630409) pos[z] += n - tar, s0.push_back(z); else s1.push_back(z);
Solve1(s0, tar), Solve1(s1, n - tar);
}
}
unsigned table[N];
int main()
{
// freopen("tmp2.log", "w", stderr);
int OP; cin >> OP;
if (OP == 1)
{
int n; scanf("%d", &n);
for (int i = 0; i < n; i++) scanf("%u%u", k + i, v + i);
vector<int> ss;
for (int i = 0; i < n; i++) ss.push_back(i);
Solve0(ss);
// assert(0);
for (int i = 0; i < n; i++) table[pos[i]] = v[i];
for (int i = 0; i < n; i++) Print(table[i]);
// cerr << "t: " << t << endl;
printf("%d\n", t);
printf("%s\n", s);
}
else
{
int n, q, K;
scanf("%d%d%d", &n, &q, &K);
scanf("%s", s);
for (int i = 0; i < q; i++) scanf("%u", k + i);
vector<int> ss;
for (int i = 0; i < q; i++) ss.push_back(i);
Solve1(ss, n);
for (int i = 0; i < n; i++) table[i] = Read();
for (int i = 0; i < q; i++) printf("%u\n", table[pos[i]]);
}
}
详细
Subtask #1:
score: 92.4
Acceptable Answer
Test #1:
score: 93.3333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3840kb,3904kb
input:
1 100 495528311 963488152 269613430 443544124 700489871 792354118 151890319 506569919 180452297 13229948 684464994 543841485 978085128 903812192 238355172 441140842 28061035 783291471 530823766 718942732 936853023 439421263 201361623 226633955 304644844 778868118 864860135 461524170 88300500 6959354...
output:
3200 1101011000100101110110101100100110111001000100000011100010011011000001010000001010110011110110011011110110110100001000000100110001000100010011000100110001001100000100110101011101011101100111000010100000110010000101111100100000111001110001000010011001100000000111100110000000001100100101100010000...
input:
2 100 79 3200 1101011000100101110110101100100110111001000100000011100010011011000001010000001010110011110110011011110110110100001000000100110001000100010011000100110001001100000100110101011101011101100111000010100000110010000101111100100000111001110001000010011001100000000111100110000000001100100101...
output:
310305144 821194635 174780370 903812192 805026231 996046536 439421263 645287342 90686849 20101025 440972097 543841485 176553522 249563964 461524170 348624865 848301562 506569919 306718453 206848250 382805509 278712030 964702808 868944393 493895143 39665197 574757075 441140842 785665865 229376884 551...
result:
points 0.93333333330 ok K = 3200
Test #2:
score: 93
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3816kb,3832kb
input:
1 100 743248071 842720888 367650901 130970775 297946283 705168964 771526942 537186020 245003150 707948455 643491261 668001146 311535032 293708068 183828318 18515526 593973840 915870006 102456762 64193833 729806890 839221652 47145974 35682954 668676377 228428310 370700393 569441954 250911162 48980047...
output:
3210 0010000001000111011000001010000011111001000111100111000100100010000010010001100000100100000001110010001001110100110110001001100001010001000010010111000101101000101000011000101001000111010011010101110101111100011100011010011111010010110110100110100110000011111011010011101000110101100100101010000...
input:
2 100 79 3210 0010000001000111011000001010000011111001000111100111000100100010000010010001100000100100000001110010001001110100110110001001100001010001000010010111000101101000101000011000101001000111010011010101110101111100011100011010011111010010110110100110100110000011111011010011101000110101100100...
output:
442563406 97578442 469403815 293708068 138158276 720700065 839221652 674386240 810209830 563527225 259979005 668001146 813899310 943777483 569441954 226088806 825435650 537186020 131383422 83733737 830289758 425793016 858146541 609883097 414389335 407054915 47572024 18515526 276587480 810627636 4972...
result:
points 0.930 ok K = 3210
Test #3:
score: 93.0667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3848kb,3852kb
input:
1 100 770174568 168127255 893508708 185778664 976425263 477317099 287595878 512153851 621600374 418802856 818787535 612197605 796811122 566496677 789841517 873731343 43178468 619503942 597852289 471053284 66112404 635260765 158101403 199253397 680158192 123081916 626776438 29107026 721141470 5177084...
output:
3208 0001000001110100010100010101010110000110010000011000010000100111011100011110001100101011100000010101010111010001001011010100001101101101000101100000010101100101010110100100010111001111011011000111010001000001010111111011010000110001101001110111100001010110011101000001000110011100000001001010000...
input:
2 100 79 3208 0001000001110100010100010101010110000110010000011000010000100111011100011110001100101011100000010101010111010001001011010100001101101101000101100000010101100101010110100100010111001111011011000111010001000001010111111011010000110001101001110111100001010110011101000001000110011100000001...
output:
676203467 418593456 222540092 566496677 487711174 155177230 635260765 19655934 405420089 197948311 16997620 612197605 623431791 654167214 29107026 103769907 951695033 512153851 401411177 839097490 141196222 886472586 767476542 270436089 885084406 492744649 861074271 873731343 744691837 300804222 364...
result:
points 0.93066666670 ok K = 3208
Test #4:
score: 92.8
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3852kb,3844kb
input:
1 100 546594289 9670068 665528790 773039281 266567267 744830423 338924380 918542055 413001686 717894752 786408307 211692098 280986141 432842000 195582858 921321743 412109607 485887870 262421557 244551274 303481411 585109375 922835159 77375674 276669713 485047938 748493209 63888398 37129726 285918022...
output:
3216 1101110100001001010110010110010110100001011000101100010000000110110010010011001110111000111101001001110010011010110001001010000110000011000100100101010001011000111001110100001010110100011010010001010001110000000010101110110100000011010011100101101101011010111010011010000100110111011110111011000...
input:
2 100 79 3216 1101110100001001010110010110010110100001011000101100010000000110110010010011001110111000111101001001110010011010110001001010000110000011000100100101010001011000111001110100001010110100011010010001010001110000000010101110110100000011010011100101101101011010111010011010000100110111011110...
output:
43372101 204611063 352593757 432842000 142147490 891337416 585109375 743309504 647533065 464964608 876089821 211692098 955710889 971589766 63888398 781195091 748872098 918542055 738134414 271774069 559783342 631668225 32245370 502187994 978371138 563783889 900635155 921321743 760555399 270665755 276...
result:
points 0.9280 ok K = 3216
Test #5:
score: 93
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 4140kb,3848kb
input:
1 100 326454605 159474960 11647328 932941462 367166680 626258331 846588658 385992166 148602944 380296908 32123445 521548223 146657758 872883623 78417135 361494853 902204073 975297913 50096537 520296997 687284103 420187394 93781442 87808395 503014564 573344902 720903126 546124141 87676450 646360824 9...
output:
3210 0001000011101100011101001001101001110010010111101101000110010000101000100011000111101101001000001110101011100100001101011100100001010001110101010100111011000110001101100101010000111001010110010000111100000001101000001000110100110001011011011000111111111111011011000000011001011100101101000110011...
input:
2 100 79 3210 0001000011101100011101001001101001110010010111101101000110010000101000100011000111101101001000001110101011100100001101011100100001010001110101010100111011000110001101100101010000111001010110010000111100000001101000001000110100110001011011011000111111111111011011000000011001011100101101...
output:
744601533 267129639 871217352 872883623 255371549 162360942 420187394 62984915 242781986 691399852 480380990 521548223 206206675 214089065 546124141 380557861 669664079 385992166 150840342 413877880 634078816 965530575 770169571 451364705 804171981 524846617 166621075 361494853 603970305 891038427 6...
result:
points 0.930 ok K = 3210
Test #6:
score: 93
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3836kb,3852kb
input:
1 100 64333280 212072142 621741906 581061751 485561139 692210649 992259436 287935018 247191279 473618369 757620730 140577613 737479792 180977604 404566245 999575096 265846881 11981569 207666352 505750476 304958822 388901054 389584560 428620342 171809402 115660346 324907936 144402645 844495803 791121...
output:
3210 0001000110101010001010001100001110101010100111100101101001011101011000101111101001110110100000110100010111010000100001101010000011100010010101000011001000111110000010100010111010111101011101000010001000100010111010011100100010101111110011000011111111000100100001100111010001100111101000010101000...
input:
2 100 79 3210 0001000110101010001010001100001110101010100111100101101001011101011000101111101001110110100000110100010111010000100001101010000011100010010101000011001000111110000010100010111010111101011101000010001000100010111010011100100010101111110011000011111111000100100001100111010001100111101000...
output:
925952390 770406569 77034978 180977604 957934192 99668862 388901054 858699296 371495636 28514411 68070922 140577613 781757001 847250666 144402645 346058199 267461021 287935018 989151756 348668969 556273495 997895853 95321369 938341707 276009971 101428817 899728485 999575096 385642796 181794009 75258...
result:
points 0.930 ok K = 3210
Test #7:
score: 92.6667
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 4136kb,4136kb
input:
1 100 38589601 573023388 6635272 692946586 153397181 811034102 859889237 493892802 259205483 364719660 954343124 427626481 959173918 753851930 975496695 577574806 311830132 29056811 509015429 310443549 588209966 697904208 31314024 836756664 249907127 458343750 355938610 284261099 221528639 337802970...
output:
3220 1101000100101100111010110101001110001110101100110111010011000110110000111010111101001100101010001011011000100001001110001011101001100100001000111110111011111000001000001101001110100100101011101000000101000001001000011000011100111111100001000110010111100111110101000011100010111010010100011010100...
input:
2 100 79 3220 1101000100101100111010110101001110001110101100110111010011000110110000111010111101001100101010001011011000100001001110001011101001100100001000111110111011111000001000001101001110100100101011101000000101000001001000011000011100111111100001000110010111100111110101000011100010111010010100...
output:
230017218 565349569 47782129 753851930 678112683 647428660 697904208 283703409 312668984 173256201 644234813 427626481 304813844 912323446 284261099 886592164 929134689 493892802 555567576 65699189 645479813 694103982 65190925 671520247 354050416 976551128 738019464 577574806 813237436 891060967 888...
result:
points 0.92666666670 ok K = 3220
Test #8:
score: 92.8667
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 4104kb,3840kb
input:
1 100 608812690 879292074 479028197 788306143 615995302 841820438 145257256 962764296 602711633 995581697 898256936 448106429 760128150 867194906 843820112 719060821 156799570 629004151 556234422 563271562 355032462 28734192 691911457 345245685 868932163 940932744 589136297 140594459 605248500 81637...
output:
3214 1101111000001101010010010111001101111001000000110000110101010011101001011001000100101011010010110000100101110000011001101101000010000100100110111010100000000110100101000010010100001100100100110001000110111001101010011001110100010011010000011101110001011101010100100100110001110000101011011111100...
input:
2 100 79 3214 1101111000001101010010010111001101111001000000110000110101010011101001011001000100101011010010110000100101110000011001101101000010000100100110111010100000000110100101000010010100001100100100110001000110111001101010011001110100010011010000011101110001011101010100100100110001110000101011...
output:
500331265 566760896 580044819 867194906 560949333 9781752 28734192 263251739 247143049 846291006 332847217 448106429 266605081 382040161 140594459 32445827 364204743 962764296 647363961 549897822 266248054 819012425 609835929 951476639 538336120 158314822 355385207 719060821 493794877 696188978 3014...
result:
points 0.92866666670 ok K = 3214
Test #9:
score: 92.4
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3832kb,3924kb
input:
1 100 221411475 163696773 580081552 897674994 529495152 42484057 439934490 746227851 716122469 137572309 850797298 158711960 820091048 515476547 797154090 246166696 923505280 368103965 246035210 308696941 613434683 955145371 875043135 212559533 205331778 121889189 468477922 194020296 861623799 72521...
output:
3228 1101010000010011011110111010101010010000000111110110101011101101101010000100100001000100011110011010110000011101001010110101011101101011010011010110110111010100101010001000000110001000110000101011010110101101110100000000101101001001010110110110101100111010100000100001100110011100100001000011101...
input:
2 100 79 3228 1101010000010011011110111010101010010000000111110110101011101101101010000100100001000100011110011010110000011101001010110101011101101011010011010110110111010100101010001000000110001000110000101011010110101101110100000000101101001001010110110110101100111010100000100001100110011100100001...
output:
447518344 20372800 820057525 515476547 929148550 975667875 955145371 710181675 270693487 815249231 444426161 158711960 978716476 472823181 194020296 768850245 118243886 746227851 939771652 880147346 23021000 674514174 170878417 120543464 688090699 772795972 659239901 246166696 22324283 62945716 4424...
result:
points 0.9240 ok K = 3228
Test #10:
score: 93
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3924kb,3924kb
input:
1 100 19599769 503599235 607852146 743568370 186281835 152620298 14504908 481672793 781288195 362834688 151340700 673227358 631578327 616559846 162406965 868151253 654902334 704640894 506151846 36830214 260055673 991685781 541724792 551734837 725627458 660315138 732278528 433696372 325821250 4876257...
output:
3210 0001000110110100000010100000100001010001000110000000110100110010010001110111011111010100001110000011101101000000011110100011010100100010110000010101010100010100100011010000010101000101110100011111111010000011010011100001110011001000101111000111100010010111010100011001010000000101011101011010010...
input:
2 100 79 3210 0001000110110100000010100000100001010001000110000000110100110010010001110111011111010100001110000011101101000000011110100011010100100010110000010101010100010100100011010000010101000101110100011111111010000011010011100001110011001000101111000111100010010111010100011001010000000101011101...
output:
17522166 203911209 128873662 616559846 5724752 637807633 991685781 667107960 23742057 733808995 34061776 673227358 76723239 80053091 433696372 302174338 804265440 481672793 129338272 820651206 457529317 578437883 142129496 92873118 115024862 323981695 456071005 868151253 79539206 533123847 250920833...
result:
points 0.930 ok K = 3210
Test #11:
score: 92.6667
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3796kb,3856kb
input:
1 100 754728080 615034506 278142947 739166255 431557648 213650106 801076937 12302465 390056764 405912325 958010191 972296266 618096674 290293214 816072144 822111433 114390542 264666411 362376476 262284198 397871046 932447079 740458746 280549044 401344771 621570565 158481121 162119017 575252154 10877...
output:
3220 1010000011000110101001010000110000010000100000111000000101111010011110111000000101000010101101101001100100010011010001110100101000001101100000100111010100011011110000100111010100010000100100101010101100010011010101110101000000101110111011100010000001100001111101011001111001000011110100101001000...
input:
2 100 79 3220 1010000011000110101001010000110000010000100000111000000101111010011110111000000101000010101101101001100100010011010001110100101000001101100000100111010100011011110000100111010100010000100100101010101100010011010101110101000000101110111011100010000001100001111101011001111001000011110100...
output:
956707937 764151542 425056403 290293214 904945055 569744963 932447079 578669827 615355462 437815230 175380679 972296266 707177724 779023842 162119017 102160143 489008046 12302465 71297359 937102868 844790648 930068047 918051016 375684910 653833961 85896778 97899197 822111433 333928660 394182386 2979...
result:
points 0.92666666670 ok K = 3220
Test #12:
score: 93
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3812kb,3844kb
input:
1 100 651602369 609971562 405806520 338858725 82461387 773296498 370394604 205907118 83229151 915559769 402520445 634368224 295827147 51732839 850231879 473145268 91650669 793908439 989299809 96921178 907891317 791908538 221803027 446090649 124079152 603405537 739157248 694680954 704470038 219741129...
output:
3210 0010010101001010110101001001100011001111010001000001000100101011010110110110010000010101011101100000100101111100100100111011100001101101111010101000010101011001101011110100001010010001100000100011111101000111111011110100111101111001100110011101001101111111000100101110011101100111111010110100111...
input:
2 100 79 3210 0010010101001010110101001001100011001111010001000001000100101011010110110110010000010101011101100000100101111100100100111011100001101101111010101000010101011001101011110100001010010001100000100011111101000111111011110100111101111001100110011101001101111111000100101110011101100111111010...
output:
304926408 871747385 695719855 51732839 30730873 858053531 791908538 890946266 742114626 147850369 963347495 634368224 56126240 294913872 694680954 413016011 3780006 205907118 980617161 660575727 27667900 592622098 681202212 760457383 415626677 428417886 570655471 473145268 966433960 923765677 553360...
result:
points 0.930 ok K = 3210
Test #13:
score: 92.8667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3844kb,4136kb
input:
1 100 900905485 986849220 865890639 989219769 974980553 815503255 12084595 62574731 234049511 570118116 55567194 907451536 607443488 476001345 441446673 515273718 647029160 196634608 984700195 391421066 387033530 548761294 299636778 162002144 258531148 905788089 99288303 231936743 506688707 46687162...
output:
3214 0100000100000110110010111010111111110100000111100001101000110101011010001110000011100110110001001011101000010010100111010010110101100011000110101000100010101010110000111101000001010100111000101110010101110100100100100001100001111111110011010111100101010011011111111011100010101111101000100101001...
input:
2 100 79 3214 0100000100000110110010111010111111110100000111100001101000110101011010001110000011100110110001001011101000010010100111010010110101100011000110101000100010101010110000111101000001010100111000101110010101110100100100100001100001111111110011010111100101010011011111111011100010101111101000...
output:
806344887 664008030 73690163 476001345 211279038 879930441 548761294 308851136 443343152 782576630 352250016 907451536 584286144 374558469 231936743 760852838 985997701 62574731 372865777 828181419 656826593 577394566 759576483 515637769 769134727 778154760 263932789 515273718 69006606 294577561 498...
result:
points 0.92866666670 ok K = 3214
Test #14:
score: 92.9333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3804kb,3916kb
input:
1 100 100175674 328715935 971481682 194132780 717666444 504666299 330362693 977581115 872779535 597235480 375783505 452186384 419400050 627221988 600872811 553467292 201684227 507815487 95388868 719860800 820903171 665851948 43416948 800556305 277069166 53288802 376279049 298221064 161791895 1888138...
output:
3212 0111000100101001001000010010000100101100111001101110110110010111010001001100101011111010011001000000110111010000100010001010110010001011010110000000101101011001111101110101101010000110001111000100001010101111100110011100001100011011100111001010111110011111101010001010001011000001111101111000011...
input:
2 100 79 3212 0111000100101001001000010010000100101100111001101110110110010111010001001100101011111010011001000000110111010000100010001010110010001011010110000000101101011001111101110101101010000110001111000100001010101111100110011100001100011011100111001010111110011111101010001010001011000001111101...
output:
656202152 38139659 986245811 627221988 262987141 41626531 665851948 721346847 18937813 662860631 348766134 452186384 952646508 719733063 298221064 310596719 287953722 977581115 980528425 123043074 740357729 215128353 275085455 357145189 231768137 968678053 431885039 553467292 654066409 991017403 592...
result:
points 0.92933333330 ok K = 3212
Test #15:
score: 93.5333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 4108kb,3920kb
input:
1 100 155759197 738116086 693067528 594897020 326890902 625583897 248669652 892268604 982863679 666422296 851843372 868420150 318485019 643582119 817328291 563713715 147817474 54748668 839462496 907507551 485479383 25930860 669573094 752904913 226916686 37390772 111822444 292076901 593570288 9599256...
output:
3194 0111000100001101100110010000101111010000000001101010111010101010000100101010011011001011110100010101000000110001001011010000100010101000111100011010001011000100110100000101010010100010000010100110110011100000011010101101000110010101001001101001110001100111100100110111010011011011101001101001101...
input:
2 100 79 3194 0111000100001101100110010000101111010000000001101010111010101010000100101010011011001011110100010101000000110001001011010000100010101000111100011010001011000100110100000101010010100010000010100110110011100000011010101101000110010101001001101001110001100111100100110111010011011011101001...
output:
237700952 431918470 552117997 643582119 179644804 592543520 25930860 71700147 515536454 240714551 904270220 868420150 409900083 236315209 292076901 682237796 969917168 892268604 730750810 677248102 964094246 746774159 915185427 483386475 303613984 892436193 535058636 563713715 208906352 365661664 70...
result:
points 0.93533333330 ok K = 3194
Test #16:
score: 93.2
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3848kb,3900kb
input:
1 100 528691319 91831880 386349345 731326576 21176008 940098540 325859753 762337780 713581844 897308394 774875332 625809049 252347069 294035274 623069253 468083716 648169883 510534328 99296629 772471648 385338480 58002281 223045398 430841708 313950768 22827747 173102112 767986059 540475972 562649334...
output:
3204 0001001010110101110011011011011000101000010001101000011101100110100000000100110011010011111100110100000011010001001010110110010000110100001100000000111010101010000011101010001100110101010101110000010100011000101000000010101010110001110100011001101100010010000111100101011011000111101111111111000...
input:
2 100 79 3204 0001001010110101110011011011011000101000010001101000011101100110100000000100110011010011111100110100000011010001001010110110010000110100001100000000111010101010000011101010001100110101010101110000010100011000101000000010101010110001110100011001101100010010000111100101011011000111101111...
output:
525791347 67606394 423041096 294035274 505042001 36069272 58002281 486356778 736546059 708625946 554916860 625809049 239334507 588411226 767986059 447213639 540326718 762337780 504417370 41031618 377948179 599950989 278829818 167509922 486272562 158889968 701081566 468083716 585296033 674626268 7669...
result:
points 0.9320 ok K = 3204
Test #17:
score: 92.9333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 4104kb,4132kb
input:
1 100 670714199 899616316 329702868 22625676 609441993 414274788 231301804 982523317 499797027 829951970 554440084 606392830 416502025 91330445 765840045 291414099 955527229 697408403 468888699 842546173 140134565 404507934 469199432 692339096 392093128 681468648 224453201 253441757 536866309 687113...
output:
3212 1010110000011010010010110001000010111110100000001110101010010100111010000001110110111101100010011010001101001101010100100100001010011101101000001101100011101011011000010000100100110011101111010111001110100010101110100010110100101110110110100111011101000110000000101100111001101110101111101001100...
input:
2 100 79 3212 1010110000011010010010110001000010111110100000001110101010010100111010000001110110111101100010011010001101001101010100100100001010011101101000001101100011101011011000010000100100110011101111010111001110100010101110100010110100101110110110100111011101000110000000101100111001101110101111...
output:
242761459 143380783 210207234 91330445 429281488 593964600 404507934 994543054 389733156 263001270 548956961 606392830 332393935 547574592 253441757 463394561 905379537 982523317 900985807 641084668 253229006 698233960 999741433 286544104 597913890 717679349 758596846 291414099 465760688 831854537 3...
result:
points 0.92933333330 ok K = 3212
Test #18:
score: 93.4
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3852kb,3844kb
input:
1 100 275061606 289457664 693063527 749795396 795050156 134138686 981588711 937513908 429027101 860895914 674570083 891634484 550874890 279984285 582813425 847536233 321204048 609521529 291674417 859403227 725419330 333924634 132857229 577840142 557763992 970692209 811676515 114428543 101877420 3158...
output:
3198 0111000001000110110000110010100111000100001010000100001000110100011100000010101010101000101010110111110000100011001000000010001010010101010001110011011000100011011101000110111000110100100000000100100011111001110001111111001100111100010101101000011010100101001011110110000101110110110100000110011...
input:
2 100 79 3198 0111000001000110110000110010100111000100001010000100001000110100011100000010101010101000101010110111110000100011001000000010001010010101010001110011011000100011011101000110111000110100100000000100100011111001110001111111001100111100010101101000011010100101001011110110000101110110110100...
output:
382108052 879750157 37994005 279984285 580337233 18231300 333924634 234260705 715271084 344172931 938975031 891634484 144724709 373096103 114428543 956849472 342941235 937513908 479067941 598876546 9034105 41691365 182789857 131813075 579935334 765864325 601678407 847536233 328128741 947656737 10183...
result:
points 0.9340 ok K = 3198
Test #19:
score: 92.8
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3844kb,4088kb
input:
1 100 470536077 756757121 698892841 113862517 391881103 169085283 574848268 834285768 83385059 209666273 443574343 389990921 771772748 681164066 330356183 577452798 715424487 88461370 302878747 916053614 615497987 409959796 116516935 580821406 983941553 319204899 451405325 262835243 98691093 4489770...
output:
3216 1011100010011010000010011101001001000110101100000111001110000001100101110000011111110100010100010110100011001010101000110110101011001000100001010101001000011100100101000011000011100000111111010000010001011010010101001000100010111111000011000101110100011110010001010010000110111100101110111000111...
input:
2 100 79 3216 1011100010011010000010011101001001000110101100000111001110000001100101110000011111110100010100010110100011001010101000110110101011001000100001010101001000011100100101000011000011100000111111010000010001011010010101001000100010111111000011000101110100011110010001010010000110111100101110...
output:
528747963 959190249 718941756 681164066 467466808 726056672 409959796 998200951 89671985 75316879 739174254 389990921 422960743 502293847 262835243 197165052 808221348 834285768 984153761 424350863 561256918 656088826 819439861 743282063 819577672 220146817 544150179 577452798 818978473 950820104 13...
result:
points 0.9280 ok K = 3216
Test #20:
score: 93.0667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3904kb,3840kb
input:
1 100 857972746 134585349 760010510 2409930 829735729 992224127 440669822 213659303 885149400 813615513 56577893 296741031 868626948 249885189 796120839 848097683 319287857 593262418 113573269 310951877 159423015 689854466 604382512 678191352 662333203 970475275 41537552 369712985 896091462 80987399...
output:
3208 1101000100000101011010101111100101100100000110100110010001010000100001000010100011100101000000010000000010001000101001001000100110000111011011100101000000001011101110110001110000100100110101101010001010011010000011111101100001111000110010001011101100110100101000111001010001101011111110100010100...
input:
2 100 79 3208 1101000100000101011010101111100101100100000110100110010001010000100001000010100011100101000000010000000010001000101001001000100110000111011011100101000000001011101110110001110000100100110101101010001010011010000011111101100001111000110010001011101100110100101000111001010001101011111110...
output:
804546071 438874305 438151180 249885189 401629802 750923475 689854466 301429802 387560367 155851954 6936429 296741031 730588729 641027582 369712985 853514377 442079545 213659303 629911625 116708306 685696220 822079954 658493553 291754485 411862892 377892525 901098253 848097683 101876279 829010531 42...
result:
points 0.93066666670 ok K = 3208
Test #21:
score: 93.1333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 4140kb,3848kb
input:
1 100 338282351 535547274 750971852 174091841 561253347 576036946 56873245 859929495 969725293 454521472 369256223 469692455 764245447 421478570 69490101 484398194 511848702 543549274 795380426 373214417 703131114 43647426 470419094 661670484 888281054 847964250 582810624 530062905 9858387 17503621 ...
output:
3206 0011000001000110101000110100111001111010110000100111010011000100011001001001010001000110110010000101011000111101000100100110000101000011000101100010111100100000100100110010001000010101101000011100000110010010100111111001001011010110111101000111101001101110100100111011011011100101100011000010000...
input:
2 100 79 3206 0011000001000110101000110100111001111010110000100111010011000100011001001001010001000110110010000101011000111101000100100110000101000011000101100010111100100000100100110010001000010101101000011100000110010010100111111001001011010110111101000111101001101110100100111011011011100101100011...
output:
224507328 770100728 519728537 421478570 118701838 90587740 43647426 704195951 382793454 96937647 813071399 469692455 956946168 981902632 530062905 910982983 829361117 859929495 605032370 744119805 488026834 603040517 420827981 488277929 504604368 932579570 161296202 484398194 10047192 920152901 1051...
result:
points 0.93133333330 ok K = 3206
Test #22:
score: 92.9333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3812kb,3840kb
input:
1 100 130346006 891277451 885624488 257660768 148463654 540363656 110899930 346826439 698283177 665412444 994380771 198320684 778409823 541781037 745591948 343969889 919211689 712095403 601055685 905001997 358086203 837731489 672966517 216082867 24812745 420306523 57050251 310792238 247206563 475591...
output:
3212 1010000010000001110110100101010101100110001001110010001011100001010110000001010001100010101010000110000010001010000010110110100010001010111001000100011100001111110010101000111011001011101110100000000111100000100010100100110001010010010110111010110111011101100011011010010111001000001010011101001...
input:
2 100 79 3212 1010000010000001110110100101010101100110001001110010001011100001010110000001010001100010101010000110000010001010000010110110100010001010111001000100011100001111110010101000111011001011101110100000000111100000100010100100110001010010010110111010110111011101100011011010010111001000001010...
output:
656343932 684168382 769585519 541781037 468507179 735145247 837731489 583535496 684793051 634167649 525100749 198320684 439196264 262549584 310792238 268347712 771030767 346826439 466407071 404696628 739808802 917494906 43705634 458958901 632146165 417638157 84813667 343969889 798218178 614579243 64...
result:
points 0.92933333330 ok K = 3212
Test #23:
score: 92.9333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3852kb,3840kb
input:
1 100 727353765 540226289 198728094 766386773 357131756 478519307 988591322 666204558 622299099 662757533 526181560 633002809 768119020 439579332 304399500 927131671 54245905 582897180 437454576 979186091 167429496 970050114 517098789 559461657 368905545 99338682 33385857 931761781 68394178 77881384...
output:
3212 1111010010100000110101110100001011000000010010100101001000011110110101010110000111000001110001001110100000001001000101000101110101111100000011100100000010011000001101010101110001111100100010101000001101000100110011100110110111000101011100001101101011011111111000001000100010010110111010110110110...
input:
2 100 79 3212 1111010010100000110101110100001011000000010010100101001000011110110101010110000111000001110001001110100000001001000101000101110101111100000011100100000010011000001101010101110001111100100010101000001101000100110011100110110111000101011100001101101011011111111000001000100010010110111010...
output:
637707074 926530 819970639 439579332 968299971 694485705 970050114 210282009 993494804 971480757 689839964 633002809 809612133 875781636 931761781 114357809 426541289 666204558 360491482 232189192 455981622 14973200 829830701 691605944 296245432 645800065 518516007 927131671 472579938 459967353 5315...
result:
points 0.92933333330 ok K = 3212
Test #24:
score: 93.1333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3836kb,4136kb
input:
1 100 516669880 692841746 537032986 548707172 768481811 330616621 565529569 204235345 568604397 276406459 531260376 966386991 470728934 288381852 736546167 435216158 101516449 464172040 625913894 488536307 116887383 347627700 758664574 131095502 389606580 84082160 373851139 353684419 794964985 82206...
output:
3206 1101010101011100010100000101000111011010010000101010111000010110110110010110000110000110111011100110000011100011000010001010101111101001101110100010111100011000101110110000011100000011001010101001010111110101100000001001011110001001111100101111000110001001000011011001100111110000110111110001111...
input:
2 100 79 3206 1101010101011100010100000101000111011010010000101010111000010110110110010110000110000110111011100110000011100011000010001010101111101001101110100010111100011000101110110000011100000011001010101001010111110101100000001001011110001001111100101111000110001001000011011001100111110000110111...
output:
824265694 823080244 799670389 288381852 169933132 403273887 347627700 448695924 131314426 313129942 213235568 966386991 612384921 431273645 353684419 940366236 412241121 204235345 686356384 543442146 379280891 109609808 975619138 944832568 775109683 613502168 617479713 435216158 666549936 277678005 ...
result:
points 0.93133333330 ok K = 3206
Test #25:
score: 92.8
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3792kb,3940kb
input:
1 100 372104321 661333761 926919776 579976882 403232435 494262953 446358648 437141002 47453478 652538571 500378800 637915335 236300111 106901258 116478562 352343485 519690966 510494272 884586941 748751699 589183960 469068835 309223864 294984914 276227690 364108467 922165060 297950392 45400397 686943...
output:
3216 1101000001000010100101000011101010010011101110000011110011000100011110110100010100000000011101111000110010100100100100011010100100001101100000011101000001011010101100000001101110110001110001111001100010100101011000101001001011001101111001000111001100111101001101111110100010101000000000101011101...
input:
2 100 79 3216 1101000001000010100101000011101010010011101110000011110011000100011110110100010100000000011101111000110010100100100100011010100100001101100000011101000001011010101100000001101110110001110001111001100010100101011000101001001011001101111001000111001100111101001101111110100010101000000000...
output:
749880619 80543316 586138899 106901258 219907616 408787218 469068835 396524270 333555991 531826730 918802316 637915335 140716275 194883708 297950392 85568567 521067667 437141002 647729371 523149256 335538435 853017270 931231977 648867380 360880023 435128215 632685180 352343485 133234415 605658882 67...
result:
points 0.9280 ok K = 3216
Test #26:
score: 93
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 4132kb,4104kb
input:
1 100 771595997 319786827 412811499 817307270 738505239 885061434 985904063 437562537 445352259 411925181 123822945 823894119 888835788 999087562 646220704 82172817 81547928 89237739 599934026 710756331 6101115 374839154 361877824 345100503 149063202 933188075 703658682 691533365 158847800 107227001...
output:
3210 0011000110001001001111100001110011101011010100100010011111101000110100101000010000011110101010100111000001011100100011011011011010001000011101101001110100001000000011000100010011001011001101010001011110001110111001000110101100010111010011101100001001000110111000010011010011011110111110110011110...
input:
2 100 79 3210 0011000110001001001111100001110011101011010100100010011111101000110100101000010000011110101010100111000001011100100011011011011010001000011101101001110100001000000011000100010011001011001101010001011110001110111001000110101100010111010011101100001001000110111000010011010011011110111110...
output:
765552682 786058369 301260795 999087562 612183861 193509014 374839154 507856834 741140138 286118761 208098625 823894119 870326141 644082047 691533365 575204482 824337497 437562537 896172427 445148558 118382861 878135225 407536487 510560011 535710878 111854461 10749392 82172817 107651473 954777140 40...
result:
points 0.930 ok K = 3210
Test #27:
score: 92.7333
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 4104kb,3844kb
input:
1 100 206035075 511295878 943493371 350467904 992398940 364769667 189487358 350467904 770852642 511295878 696317149 511295878 211799514 747768455 687279973 364769667 991712428 350467904 742823341 350467904 560412664 747768455 552146681 747768455 201447729 249391801 68952867 249391801 324496155 36476...
output:
3218 0111001010001110110000010111010010111110100100000010001101101110100111010000110110011001101101111011010010110110000010010001011001000000100101100100001101001010111101010110101010101010100100110000111010011001100010111001010110111101111100011000001100111011011101011010101011100101111001111001110...
input:
2 100 79 3218 0111001010001110110000010111010010111110100100000010001101101110100111010000110110011001101101111011010010110110000010010001011001000000100101100100001101001010111101010110101010101010100100110000111010011001100010111001010110111101111100011000001100111011011101011010101011100101111001...
output:
249391801 249391801 747768455 747768455 249391801 249391801 747768455 249391801 364769667 747768455 364769667 511295878 511295878 747768455 249391801 511295878 747768455 350467904 249391801 364769667 511295878 511295878 350467904 249391801 249391801 511295878 249391801 364769667 747768455 350467904 ...
result:
points 0.92733333330 ok K = 3218
Test #28:
score: 92.9333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3844kb,4140kb
input:
1 100 38846592 590301525 766125667 583955748 147163223 473282891 47853599 84365741 966765100 84365741 767572143 473282891 112595241 473282891 102598295 84365741 855963947 583955748 970219272 473282891 580798626 729529201 969377524 729529201 28800277 583955748 103065213 84365741 964977691 583955748 3...
output:
3212 1010100000111011101011100110101000011110100001100101101011000010101010110011011011111010000001011110100001001100001010110001000100100000010111101110001101010001000010010001000110100100000111011010001100101001111110101101111011101110110111000101110000110101101110010100101110101101111011101110110...
input:
2 100 79 3212 1010100000111011101011100110101000011110100001100101101011000010101010110011011011111010000001011110100001001100001010110001000100100000010111101110001101010001000010010001000110100100000111011010001100101001111110101101111011101110110111000101110000110101101110010100101110101101111011...
output:
729529201 84365741 729529201 473282891 583955748 590301525 729529201 583955748 583955748 729529201 583955748 473282891 729529201 590301525 84365741 84365741 729529201 84365741 590301525 729529201 729529201 84365741 583955748 84365741 473282891 729529201 590301525 84365741 84365741 583955748 72952920...
result:
points 0.92933333330 ok K = 3212
Test #29:
score: 93.2
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3924kb,3888kb
input:
1 100 477271109 449442777 446718189 276977366 466140087 216878887 784932585 449442777 479123602 276977366 630426762 216878887 239787459 449442777 634896974 449442777 708961222 449442777 842146301 54046568 656380589 276977366 528549690 54046568 68980391 54046568 18291326 276977366 807959596 276977366...
output:
3204 0010000010001000100101010000011100010000100101100110010101110111000001100110011111010000001001000001110100110100011010101101000001000110100000101111010000010000011101010010001000001011011000101100000011110110101100100111110011110110010011001110110101001111001001110011001110110101001111001001110...
input:
2 100 79 3204 0010000010001000100101010000011100010000100101100110010101110111000001100110011111010000001001000001110100110100011010101101000001000110100000101111010000010000011101010010001000001011011000101100000011110110101100100111110011110110010011001110110101001111001001110011001110110101001111...
output:
276977366 449442777 449442777 449442777 449442777 242396692 276977366 242396692 54046568 54046568 216878887 216878887 449442777 54046568 276977366 276977366 54046568 449442777 54046568 449442777 242396692 242396692 54046568 242396692 216878887 242396692 242396692 449442777 216878887 216878887 449442...
result:
points 0.9320 ok K = 3204
Test #30:
score: 93.0667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3904kb,3792kb
input:
1 100 585065483 112535650 608937343 327454770 624137583 327454770 629362329 327454770 644440246 226319000 760047072 813169447 528034354 633359692 95539762 815721144 785118862 681153074 998922749 951454394 601779042 493831708 453071066 197965269 81706587 292630540 605661446 681153074 186765866 622304...
output:
3208 0110000111000100100100000010001000100010110000101110000010100111111101000101110111001101110000101110000011010010110001101000000111010111000001101101111001000001011011110111101101011111110100001000000000100000010011100001001001000000110010010100110011111111110101011101100101110000000100110101001...
input:
2 100 79 3208 0110000111000100100100000010001000100010110000101110000010100111111101000101110111001101110000101110000011010010110001101000000111010111000001101101111001000001011011110111101101011111110100001000000000100000010011100001001001000000110010010100110011111111110101011101100101110000000100...
output:
970743772 813169447 112535650 633359692 465399192 49845718 493831708 313081199 37991182 633359692 19177570 813169447 264826254 112535650 681153074 327454770 563457071 327454770 6468822 681153074 970743772 813169447 323298072 403431025 292630540 813169447 617584803 815721144 633359692 681153074 68115...
result:
points 0.93066666670 ok K = 3208
Test #31:
score: 92.7333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 4136kb,4144kb
input:
1 100 579836261 10451473 617992916 10451473 326235809 883394029 640105546 734376455 605644655 883394029 779802456 425887213 665596895 210093952 259514544 38469971 503131818 745725082 279670249 712125976 376796817 390441271 226655638 970158723 910462511 257302469 405774141 585590475 683066092 1133515...
output:
3218 1101100100000110100000100001011010100110111010001010000000111110100101011010111100000000011010101000010110000000111010011011010111101000011110001100111101000010101001010100000111011101011110001011100100110010000001000100000010001010111001101011100001111000000000101011100111110111001111001110101...
input:
2 100 79 3218 1101100100000110100000100001011010100110111010001010000000111110100101011010111100000000011010101000010110000000111010011011010111101000011110001100111101000010101001010100000111011101011110001011100100110010000001000100000010001010111001101011100001111000000000101011100111110111001111...
output:
867924717 734376455 722172393 210093952 210093952 712125976 390441271 867924717 66279466 870905565 740193944 425887213 367240189 210093952 585590475 38469971 970158723 734376455 555922208 257302469 970158723 503361149 113351501 970158723 883394029 869180294 869180294 38469971 970158723 745725082 257...
result:
points 0.92733333330 ok K = 3218
Test #32:
score: 93.0667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3860kb,3808kb
input:
1 100 487198695 343370248 283738449 786147340 119713879 786147340 380918703 101645858 828543229 786147340 80959682 642154269 778381283 110219219 995847152 343370248 861422807 32355807 811558363 226114267 974331359 103140485 824122871 437864066 914690256 127820026 486859834 768079269 250640685 814389...
output:
3208 0100000101001011011100010100100010000001011011100000011110011101000001111000010110010101100111000101000000011001011010101000100010110101010100001011010001011010111010110010011010101011110011010001011000110010000111010000000100000000101000001000100010001101001101011010000001111011011011010111011...
input:
2 100 79 3208 0100000101001011011100010100100010000001011011100000011110011101000001111000010110010101100111000101000000011001011010101000100010110101010100001011010001011010111010110010011010101011110011010001011000110010000111010000000100000000101000001000100010001101001101011010000001111011011011...
output:
110219219 343370248 103140485 110219219 877659791 975832570 103140485 437864066 110219219 207030293 449631481 642154269 607610295 127820026 768079269 143184730 101645858 101645858 864627855 877659791 110219219 32355807 449631481 121651240 918337907 207030293 103140485 343370248 121651240 226114267 6...
result:
points 0.93066666670 ok K = 3208
Test #33:
score: 93.1333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3792kb,3840kb
input:
1 100 512732940 289939038 512733023 852051989 512732969 581574676 512732942 956239139 512732923 26482600 512732947 731807912 512732933 723878192 512733056 536458889 512732999 396013182 512732915 922818367 512733071 983151840 512733053 631712279 512732943 314470303 512732920 42155291 512732890 762522...
output:
3206 0110000100101101101110001011101010100011010001010010110000001101110000100100101010110101100110110000111000000101001101000001100101100111000101111001000110010101001011000100001010110101101010000110000011001101111100011010100101101001101110110011010011111111001101101010010011100101101000011110010...
input:
2 100 79 3206 0110000100101101101110001011101010100011010001010010110000001101110000100100101010110101100110110000111000000101001101000001100101100111000101111001000110010101001011000100001010110101101010000110000011001101111100011010100101101001101110110011010011111111001101101010010011100101101000...
output:
368883759 746111260 496180150 723878192 242855768 69845727 983151840 313782028 806867236 975143897 497308699 731807912 619028965 310033220 42155291 215111030 342163120 956239139 720006188 521836187 491314279 695116743 27880946 854180533 442244992 611259032 642267044 536458889 577124854 802566076 530...
result:
points 0.93133333330 ok K = 3206
Test #34:
score: 93.2
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3796kb,3812kb
input:
1 100 297118287 989117679 297118208 708186892 297118344 648646224 297118389 984457845 297118209 15358827 297118253 149672542 297118229 838089126 297118388 144662885 297118233 666670537 297118232 768114569 297118204 323055795 297118261 406759456 297118328 685200282 297118338 899210998 297118279 86460...
output:
3204 1101000001000100010110010100100101010101110001011100011111101010010001100100010110001000000010001100100000111010010100000111000000001110100000100110000010101001010111001100100001111110111001111010000101011000110000101111010111110110110001001011100010100110110000100001101111000011101000011110111...
input:
2 100 79 3204 1101000001000100010110010100100101010101110001011100011111101010010001100100010110001000000010001100100000111010010100000111000000001110100000100110000010101001010111001100100001111110111001111010000101011000110000101111010111110110110001001011100010100110110000100001101111000011101000...
output:
555206240 88992836 432769029 838089126 448187310 268634234 323055795 961061001 534297235 911714835 462880360 149672542 746291112 463779561 899210998 70042440 164454768 984457845 430594344 902781359 685208399 531930619 609306519 894200521 368756810 847014248 861044530 144662885 273438100 570812937 99...
result:
points 0.9320 ok K = 3204
Test #35:
score: 92.9333
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3848kb,3840kb
input:
1 100 901044462 672186993 901044519 524166105 901044438 300408859 901044451 941328601 901044492 768533680 901044437 537179995 901044607 262214585 901044611 671425326 901044540 647167805 901044613 669933992 901044547 356274062 901044495 544339145 901044578 515360290 901044590 520934933 901044556 2222...
output:
3212 0010001111110100100110000110001100110110101000101101010111010011101001110100001101011101111010001010001111110001010010001010111001010100101010000000100111010100011110100100001101000101011010011010000000101010011111011111101101110110011110001011100000110101110010101010010010010100110000111100100...
input:
2 100 79 3212 0010001111110100100110000110001100110110101000101101010111010011101001110100001101011101111010001010001111110001010010001010111001010100101010000000100111010100011110100100001101000101011010011010000000101010011111011111101101110110011110001011100000110101110010101010010010010100110000...
output:
615797852 967216609 828426665 262214585 167491277 139999570 356274062 53322508 815637010 765110843 737374305 537179995 280125600 239748510 520934933 149791702 698406673 941328601 297999575 683659663 270825652 880424184 926440100 890950246 72586883 626905671 892749893 671425326 823026240 616074859 69...
result:
points 0.92933333330 ok K = 3212
Test #36:
score: 93.2
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 4136kb,3840kb
input:
1 100 923416461 559835977 923416380 754309725 923416512 120067064 923416363 318954636 923416450 754309725 923416360 829322735 923416325 754309725 923416405 318954636 923416397 120067064 923416413 559835977 923416317 120067064 923416430 318954636 923416515 559835977 923416389 318954636 923416390 8293...
output:
3204 1011110010010100101000011101000100100110101010110010100001011101011110010110101100000110010000001110000010000001010101101110011011101011000011001110010111010100111010101000001100001101011001000010001001010001110010100000010011111110001000010101111001101011010010011011001111010111011010010111011...
input:
2 100 79 3204 1011110010010100101000011101000100100110101010110010100001011101011110010110101100000110010000001110000010000001010101101110011011101011000011001110010111010100111010101000001100001101011001000010001001010001110010100000010011111110001000010101111001101011010010011011001111010111011010...
output:
120067064 120067064 754309725 754309725 559835977 120067064 120067064 120067064 829322735 120067064 559835977 829322735 318954636 559835977 318954636 754309725 120067064 318954636 754309725 829322735 829322735 829322735 754309725 559835977 318954636 120067064 559835977 318954636 559835977 754309725 ...
result:
points 0.9320 ok K = 3204
Test #37:
score: 93.0667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3848kb,4132kb
input:
1 100 637056195 986110896 637056026 418149048 637056138 418149048 637056143 223733334 637056158 550429346 637056122 976297327 637056151 223733334 637056183 986110896 637056036 223733334 637056168 976297327 637056171 976297327 637056038 976297327 637056172 976297327 637056037 418149048 637056005 9762...
output:
3208 0110000101010111010000011110010101011100010001000001000100100101110101000010001100101011010010110000001110100001010001010001000000011011011101000100010110010100010011010110000011010111011100100100000010100000111010110001101101101110110000111010110001101101101110110000111010001100010001110101101...
input:
2 100 79 3208 0110000101010111010000011110010101011100010001000001000100100101110101000010001100101011010010110000001110100001010001010001000000011011011101000100010110010100010011010110000011010111011100100100000010100000111010110001101101101110110000111010110001101101101110110000111010001100010001...
output:
986110896 986110896 418149048 223733334 418149048 223733334 976297327 986110896 976297327 976297327 550429346 976297327 986110896 223733334 418149048 418149048 550429346 223733334 223733334 418149048 550429346 550429346 418149048 550429346 418149048 976297327 550429346 986110896 418149048 418149048 ...
result:
points 0.93066666670 ok K = 3208
Test #38:
score: 92.8
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3832kb,3856kb
input:
1 100 258657663 65278048 258657719 706483917 258657777 361517225 258657721 561678296 258657726 706483917 258657785 361517225 258657672 635424484 258657776 635424484 258657650 561678296 258657738 65278048 258657733 361517225 258657728 635424484 258657782 65278048 258657625 361517225 258657712 6527804...
output:
3216 1101000000001110100101100010100010111000111011000101000100001000110101000110110010000110101010100000100000000000110110101011010000010000110110101010011010110101010000110101011010010001001001100001010001011000111110000000111110010000010000011000000000111110010000010000011000000000111110010000010...
input:
2 100 79 3216 1101000000001110100101100010100010111000111011000101000100001000110101000110110010000110101010100000100000000000110110101011010000010000110110101010011010110101010000110101011010010001001001100001010001011000111110000000111110010000010000011000000000111110010000010000011000000000111110...
output:
561678296 706483917 65278048 635424484 706483917 65278048 361517225 65278048 561678296 65278048 361517225 361517225 65278048 361517225 361517225 706483917 65278048 561678296 561678296 561678296 65278048 635424484 65278048 361517225 65278048 635424484 706483917 635424484 361517225 361517225 635424484...
result:
points 0.9280 ok K = 3216
Test #39:
score: 92.8667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3848kb,3836kb
input:
1 100 74385100 857405711 74384987 754791215 74385159 131734186 74384999 560201165 74384994 560201165 74385006 395911901 74385020 172744002 74385068 131734186 74385129 163316057 74385098 172744002 74385090 754791215 74385162 754791215 74385128 387870219 74385015 163316057 74385097 143150406 74385065 ...
output:
3214 1101100000010100010010110010100000110101010110101100110100100110010100000101010101101110001001100000011101000100110100010001010110001101101000101000110000101100001101010010111110000010001110101001011001101000000010001001101111000000000101011001001111010101010100111011010100000101101110111100101...
input:
2 100 79 3214 1101100000010100010010110010100000110101010110101100110100100110010100000101010101101110001001100000011101000100110100010001010110001101101000101000110000101100001101010010111110000010001110101001011001101000000010001001101111000000000101011001001111010101010100111011010100000101101110...
output:
387870219 810911333 232934464 172744002 864972665 754791215 754791215 131734186 524571006 890710512 592023070 395911901 387870219 143150406 163316057 425147725 163316057 560201165 639192024 163316057 857405711 686040986 399298725 387870219 131734186 741884429 745553612 131734186 96193103 741884429 2...
result:
points 0.92866666670 ok K = 3214
Test #40:
score: 93.1333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3836kb,3852kb
input:
1 100 477296930 787982781 477296878 538714828 477296872 49924117 477297006 849834098 477296876 414013010 477296942 849834098 477296945 493065861 477296885 40592761 477296931 968103027 477296892 968103027 477296874 536461178 477296998 40592761 477296865 835077607 477296947 11998520 477296904 53646117...
output:
3206 0011001001001010111101111111000110000001011001000001000010011001101000010110110001100110011100100110110000000110101001010111110100001110100101110101000111011001011011100010000100110100011011100011011011110111011000001111111110001111100001111111111001101111110111101000000001100101011011101101000...
input:
2 100 79 3206 0011001001001010111101111111000110000001011001000001000010011001101000010110110001100110011100100110110000000110101001010111110100001110100101110101000111011001011011100010000100110100011011100011011011110111011000001111111110001111100001111111111001101111110111101000000001100101011011...
output:
49924117 807987229 6647504 493065861 849834098 493065861 536461178 40592761 907016440 607616214 49924117 849834098 6647504 907016440 11998520 11998520 778815885 849834098 968103027 835061208 6647504 968103027 807987229 795850220 92207147 570549628 49924117 40592761 538714828 570549628 607616214 5387...
result:
points 0.93133333330 ok K = 3206
Test #41:
score: 92.6
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3848kb,3924kb
input:
1 100 277546147 305513848 277546155 324294740 277546052 543606677 277546141 544596025 277546167 977453689 277546119 305513848 277546219 386414177 277546096 668561580 277546143 668561580 277546154 896994318 277546043 529475351 277546103 597491481 277546082 544596025 277546062 794064597 277546201 7516...
output:
3222 1010100001110101111010100001110010000111110101101111100001011000010110110100001100000110101111101010110100100101011011011000110000110100001101000100000101000001111100101001101010010000111101011011111010000000110010001100110011100000101010010011010110010111100001011110110100110000001000000111010...
input:
2 100 79 3222 1010100001110101111010100001110010000111110101101111100001011000010110110100001100000110101111101010110100100101011011011000110000110100001101000100000101000001111100101001101010010000111101011011111010000000110010001100110011100000101010010011010110010111100001011110110100110000001000...
output:
599184305 597491481 544596025 386414177 544596025 789163372 529475351 35525407 844258546 122803502 305513848 305513848 956368094 529475351 794064597 35525407 844258546 544596025 956368094 751636749 977453689 386414177 902839683 638346701 543606677 35525407 202363295 668561580 543606677 599184305 544...
result:
points 0.9260 ok K = 3222
Test #42:
score: 92.6667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3836kb,3836kb
input:
1 100 95850278 420410081 95850279 172574386 95850276 897929295 95850274 780016958 95850286 87857375 95850294 662815199 95850246 205575309 95850342 187911178 95850406 883785494 95850022 743350514 95849766 755025619 95849254 569424911 95848230 228943998 95854374 462880987 95858470 108369804 95866662 5...
output:
3220 1011010000111010010010000010100100010101001010111011010110010101001011010101010110101111010010010001100100001101110000011010110100100100010100011010110111100100001101010101110100101100100000011010101000011001010110110010011110111100000110000110100001010010011100101011000011100100101010011001000...
input:
2 100 79 3220 1011010000111010010010000010100100010101001010111011010110010101001011010101010110101111010010010001100100001101110000011010110100100100010100011010110111100100001101010101110100101100100000011010101000011001010110110010011110111100000110000110100001010010011100101011000011100100101010...
output:
914561205 271909562 666771667 205575309 66391700 790627713 755025619 147497209 552846384 291780998 14185392 662815199 175656488 899641831 462880987 157217749 417768252 780016958 519810887 519070113 341234881 929963213 907058052 62909998 176025487 506655146 38853445 187911178 903500777 819495697 8285...
result:
points 0.92666666670 ok K = 3220
Test #43:
score: 92.8667
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3840kb,3832kb
input:
1 100 98326820 788148760 98326821 903311309 98326822 995365603 98326816 904699302 98326828 432521232 98326836 988002813 98326788 453592302 98326884 124688958 98326948 586543650 98326564 427518679 98327332 761049337 98327844 83620657 98324772 827301367 98322724 557980539 98335012 948368947 98310436 4...
output:
3214 0100001011101001010000101000000111111101000000001001001011100101001011000110100111000100100001010000110011000100110110001010110100001100100000001110101001011010011010111010011001000011110101001001100100100010001110001001100000001101110101001100011110110000010001010101010101101011100001000011011...
input:
2 100 79 3214 0100001011101001010000101000000111111101000000001001001011100101001011000110100111000100100001010000110011000100110110001010110100001100100000001110101001011010011010111010011001000011110101001001100100100010001110001001100000001101110101001100011110110000010001010101010101101011100001...
output:
761985265 182454808 433575844 453592302 319452051 288973904 761049337 271638053 765459598 615401416 602278459 988002813 515970389 144596598 557980539 387323226 542697661 904699302 360754191 95555103 601391445 111962924 552040714 704924054 674873551 479929864 721180528 124688958 800578449 719473157 8...
result:
points 0.92866666670 ok K = 3214
Test #44:
score: 93.2667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3836kb,3840kb
input:
1 100 34814051 239830727 34814050 170422341 34814049 201005897 34814055 957071658 34814059 60704739 34814067 167174087 34814019 470645974 34813987 462521375 34814179 394514134 34814307 282657174 34814563 278673354 34815075 604349241 34812003 804502665 34809955 585364400 34805859 156427568 34830435 9...
output:
3202 0001000110011000101100101001110010100011011100011000100110010011101001100100010001010101010101000101000111011011110100001111001101011011000100000111010111010010110100001011010010000001000110110011101111111001000110011011011100000000100101111011100110001111011110101010001000000000100001000101100...
input:
2 100 79 3202 0001000110011000101100101001110010100011011100011000100110010011101001100100010001010101010101000101000111011011110100001111001101011011000100000111010111010010110100001011010010000001000110110011101111111001000110011011011100000000100101111011100110001111011110101010001000000000100001...
output:
242028028 967916819 647979623 470645974 269970355 544929239 278673354 961650722 706742341 942519240 790987066 167174087 344855211 794573628 585364400 560953054 414781085 957071658 416007595 778224363 549919193 329677046 34749549 709186911 403468000 480270587 557411680 462521375 743204322 217890163 3...
result:
points 0.93266666670 ok K = 3202
Test #45:
score: 92.9333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3788kb,4136kb
input:
1 100 101603552 910309540 101603553 128618673 101603554 128618673 101603556 466015766 101603560 466015766 101603568 63595259 101603520 159528789 101603488 466015766 101603424 63595259 101603808 63595259 101604064 128618673 101604576 128618673 101601504 466015766 101599456 159528789 101611744 1595287...
output:
3212 1010100011000001001010111100100100110101001001000100000111010010100011001001000001110100000101011000100001000100110101100010000011101011001101100011000100001111010110010101000101111011011000101100000100001011011100011110101010100100001011000100100110000010001101110101010100011110101010100100001...
input:
2 100 79 3212 1010100011000001001010111100100100110101001001000100000111010010100011001001000001110100000101011000100001000100110101100010000011101011001101100011000100001111010110010101000101111011011000101100000100001011011100011110101010100100001011000100100110000010001101110101010100011110101010...
output:
466015766 159528789 128618673 159528789 910309540 159528789 128618673 910309540 910309540 63595259 63595259 63595259 128618673 63595259 159528789 466015766 63595259 466015766 159528789 63595259 159528789 910309540 910309540 159528789 159528789 128618673 63595259 466015766 466015766 466015766 9103095...
result:
points 0.92933333330 ok K = 3212
Test #46:
score: 93.3333
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3924kb,3888kb
input:
1 100 130595495 555137904 130595494 541848452 130595493 541848452 130595491 555137904 130595503 541848452 130595511 541848452 130595463 348635825 130595559 763689873 130595367 541848452 130595751 493524772 130594983 541848452 130596519 763689873 130593447 348635825 130591399 493524772 130587303 4935...
output:
3200 0111000100011011011100000001000101001001001010100000100110111010000010010100111000101000001000011101000110011110101001001110000011110100101011011000001000101010010011011110100111100100011010001001100110000100010110101110110111000010000001001011111100111000010010110110000100111110111001000101010...
input:
2 100 79 3200 0111000100011011011100000001000101001001001010100000100110111010000010010100111000101000001000011101000110011110101001001110000011110100101011011000001000101010010011011110100111100100011010001001100110000100010110101110110111000010000001001011111100111000010010110110000100111110111001...
output:
348635825 555137904 555137904 348635825 763689873 493524772 541848452 763689873 348635825 541848452 763689873 541848452 555137904 763689873 493524772 348635825 348635825 555137904 763689873 555137904 763689873 555137904 348635825 555137904 555137904 348635825 763689873 763689873 493524772 348635825 ...
result:
points 0.93333333330 ok K = 3200
Test #47:
score: 92.9333
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3848kb,3808kb
input:
1 100 57407078 609511226 57407079 609511226 57407076 650177765 57407074 237629501 57407086 650177765 57407094 237629501 57407046 837005623 57407014 837005623 57407206 237629501 57407334 237629501 57406566 237629501 57406054 85440363 57409126 609511226 57402982 237629501 57398886 650177765 57390694 6...
output:
3212 1011000010001011000100111111101001011110111110100011010001001010011101010000001000001001001010001110011100110001000100101010011011100011010011001010010011111101101000110111001100000000011110101101010011001100010100111000101001111100000011110100111000101001111100000011110110010001010100011001110...
input:
2 100 79 3212 1011000010001011000100111111101001011110111110100011010001001010011101010000001000001001001010001110011100110001000100101010011011100011010011001010010011111101101000110111001100000000011110101101010011001100010100111000101001111100000011110100111000101001111100000011110110010001010100...
output:
837005623 85440363 837005623 837005623 237629501 650177765 237629501 650177765 237629501 609511226 609511226 237629501 85440363 85440363 237629501 650177765 85440363 237629501 837005623 85440363 237629501 650177765 85440363 85440363 85440363 609511226 837005623 837005623 837005623 837005623 23762950...
result:
points 0.92933333330 ok K = 3212
Test #48:
score: 92.8
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3848kb,3908kb
input:
1 100 123638053 208086889 123638052 67969927 123638055 701359624 123638049 644498764 123638061 206789005 123638069 551482286 123638021 779387338 123638117 340173483 123638181 842024421 123637797 551482286 123638565 340173483 123639077 836611622 123640101 208086889 123633957 208086889 123646245 34017...
output:
3216 1110101111011110010011101001100100010000101111101010000011010010011110001011000001011110101010110100101000010000111001000100101011101111011011111000110110010000010001101000000110100101011100110000011001110100001101100100000101111011110110100101001010011100110111100110000010001011110011010001100...
input:
2 100 79 3216 1110101111011110010011101001100100010000101111101010000011010010011110001011000001011110101010110100101000010000111001000100101011101111011011111000110110010000010001101000000110100101011100110000011001110100001101100100000101111011110110100101001010011100110111100110000010001011110011...
output:
206789005 871528712 471878664 779387338 274658964 67969927 340173483 858429965 471878664 67969927 274658964 551482286 208086889 842024421 208086889 208086889 206789005 644498764 779387338 626707933 441905081 871528712 134196616 441905081 701359624 471878664 551482286 340173483 344917830 968381597 34...
result:
points 0.9280 ok K = 3216
Test #49:
score: 93.0667
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3916kb,3824kb
input:
1 100 38516242 51724027 38516243 109293008 38516240 199325064 38516246 921970758 38516250 478741986 38516226 733948860 38516274 693366411 38516306 99519275 38516370 581061445 38516498 644694484 38515730 982461909 38515218 51724027 38518290 187051288 38512146 32691045 38508050 869087423 38532626 1391...
output:
3208 1010100000100011101000001011000011100001000011000111111101010101010000000111001000000010011101110101101001001000001100111010010010100000101010010010110001101110101010001101111011100111001101001110110100000001111010100011110010110111010101011011111010111011100100111110011000111010101111000010100...
input:
2 100 79 3208 1010100000100011101000001011000011100001000011000111111101010101010000000111001000000010011101110101101001001000001100111010010010100000101010010010110001101110101010001101111011100111001101001110110100000001111010100011110010110111010101011011111010111011100100111110011000111010101111...
output:
921970758 693366411 837732621 693366411 478741986 468433214 982461909 199325064 982461909 32691045 109293008 733948860 199325064 982461909 32691045 989267124 99519275 921970758 837732621 99519275 837732621 618958642 737769391 733948860 139133359 995818827 1513851 99519275 187051288 104446153 9374283...
result:
points 0.93066666670 ok K = 3208
Test #50:
score: 92.7333
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3848kb,3848kb
input:
1 100 124787527 931384069 124787526 110334382 124787525 929370566 124787523 229299730 124787535 647528473 124787543 149219165 124787559 414381009 124787463 637940478 124787655 283521601 124787271 54374557 124787015 932382262 124788551 141332889 124785479 929370566 124783431 5110021 124795719 1855413...
output:
3218 1110100000000010001001000000011000011101010100001010101011011000010110100001100010000001010011101000000100110011000100000110101100010000010101000101101110010110110010001101010001011000001110010010100100011101100011100111011101100101000100011100011010111000011110111001011101101110000001101100011...
input:
2 100 79 3218 1110100000000010001001000000011000011101010100001010101011011000010110100001100010000001010011101000000100110011000100000110101100010000010101000101101110010110110010001101010001011000001110010010100100011101100011100111011101100101000100011100011010111000011110111001011101101110000001...
output:
110334382 543975217 505918903 414381009 637940478 773776859 932382262 151351899 151351899 283521601 229299730 149219165 530042291 283521601 5110021 149219165 54374557 229299730 414381009 948628689 286624485 637940478 637940478 229299730 71061757 775930441 779043140 637940478 948628689 151351899 6475...
result:
points 0.92733333330 ok K = 3218
Test #51:
score: 92.8
Acceptable Answer
time: 1ms = 1ms + 0ms
memory: 3840kb,3824kb
input:
1 100 24108568 297912429 24108569 936057072 24108570 99079964 24108572 494449733 24108560 891809463 24108552 741406493 24108600 198101220 24108632 845334881 24108696 137048587 24108824 183258092 24108056 596756892 24107544 266727846 24106520 448590469 24104472 360285089 24116760 957216707 24092184 9...
output:
3216 1101000000010100011101001010000101010100010001001001011011110010100110110100101100000110110101100010100101011001010001101011100110001010100010111001001001010001011000001101101010100001110100001010011001011100110100101010011111111001101100101001100000011010101011110110011110011011111111101001111...
input:
2 100 79 3216 1101000000010100011101001010000101010100010001001001011011110010100110110100101100000110110101100010100101011001010001101011100110001010100010111001001001010001011000001101101010100001110100001010011001011100110100101010011111111001101100101001100000011010101011110110011110011011111111...
output:
948661434 173515015 293647325 198101220 536132469 741465535 596756892 800748220 621621684 609231532 704539814 741406493 615866899 366412563 360285089 801877436 940829578 494449733 983241975 220395017 994341641 188252059 837781917 33823744 32003242 631395797 689489484 845334881 950817231 574630942 30...
result:
points 0.9280 ok K = 3216
Test #52:
score: 93.2667
Acceptable Answer
time: 0ms = 0ms + 0ms
memory: 3836kb,3848kb
input:
1 100 110065015 902589068 110065014 24282184 110065013 8960701 110065011 787486341 110065023 927902522 110064999 732920640 110064983 228596803 110064951 623526678 110065143 319354342 110064759 163952045 110065527 898925569 110063991 807917051 110067063 901905422 110060919 171435251 110056823 2454784...
output:
3202 1101110100011001000100001001000011101110101000010001001010001011000101101001001010111101001000010000101110110000110011010001011100111110101001101101011000111000100100011110000010001010100110110001000110011001101000000101010011110101000110010001100111010101010111001010001101111110010011110011000...
input:
2 100 79 3202 1101110100011001000100001001000011101110101000010001001010001011000101101001001010111101001000010000101110110000110011010001011100111110101001101101011000111000100100011110000010001010100110110001000110011001101000000101010011110101000110010001100111010101010111001010001101111110010011...
output:
165314056 233320096 287023811 228596803 767451810 346756994 898925569 142045060 156019090 601510030 44633438 732920640 990359606 918495028 171435251 54479423 490452078 787486341 194430408 759628739 78840308 496765452 955115329 421737804 343652621 58597303 377954556 623526678 739986902 736944296 2941...
result:
points 0.93266666670 ok K = 3202