QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#721136 | #9449. New School Term | wwdd | AC ✓ | 139ms | 14464kb | C++14 | 3.7kb | 2024-11-07 15:22:16 | 2024-11-07 15:22:18 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3664kb
input:
2 4 1 3 2 4 1 4 1 2
output:
0101
result:
ok Output is valid. OK
Test #2:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
3 7 2 5 1 3 4 6 2 6 4 5 2 4 5 6
output:
001101
result:
ok Output is valid. OK
Test #3:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
1 0
output:
10
result:
ok Output is valid. OK
Test #4:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
1 1 1 2
output:
01
result:
ok Output is valid. OK
Test #5:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
2 3 2 4 3 4 1 2
output:
0110
result:
ok Output is valid. OK
Test #6:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
3 8 4 6 3 5 1 4 2 4 1 6 1 2 3 4 4 5
output:
010101
result:
ok Output is valid. OK
Test #7:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
4 9 4 7 3 8 1 5 2 7 2 8 6 8 7 8 1 4 1 6
output:
01010110
result:
ok Output is valid. OK
Test #8:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
5 16 3 6 9 10 2 7 1 10 1 5 2 10 3 5 5 6 3 4 2 5 4 5 3 8 4 7 6 8 1 6 7 10
output:
1101000101
result:
ok Output is valid. OK
Test #9:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
6 13 4 5 2 9 3 8 4 8 4 11 10 12 3 4 3 9 5 11 2 8 5 10 5 8 1 11
output:
110110001001
result:
ok Output is valid. OK
Test #10:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
12 153 1 24 16 18 7 14 1 16 20 21 9 14 21 22 4 5 17 24 4 12 5 17 13 24 14 15 12 23 12 16 8 11 14 24 9 16 2 5 6 19 11 17 4 22 4 7 6 16 7 20 8 15 5 24 2 10 10 21 21 24 1 12 11 19 18 21 18 24 12 17 13 22 7 9 13 23 4 9 11 13 15 21 5 7 2 4 15 16 17 19 11 16 11 20 7 8 4 15 13 14 6 18 2 19 9 13 23 24 4 21 ...
output:
000011100110010001111110
result:
ok Output is valid. OK
Test #11:
score: 0
Accepted
time: 5ms
memory: 3864kb
input:
259 33757 472 500 65 336 138 469 307 442 427 458 43 239 17 508 460 466 108 393 79 92 250 483 44 277 17 132 35 57 155 499 184 474 246 272 274 418 457 458 338 372 196 514 31 208 117 187 90 229 153 284 189 355 16 337 146 456 269 271 279 412 305 336 303 441 399 472 85 286 91 97 157 437 137 379 71 360 27...
output:
000111001101000110010001111000111111100000011101010011011101110001010010000001111000111010000011101001010001000011100101010011000101101100010101100101100101100010011000110100001110011000111101010100011001001110110101101101010101101001100110011110101001111011110001010001111101001110101101111001001100...
result:
ok Output is valid. OK
Test #12:
score: 0
Accepted
time: 25ms
memory: 9052kb
input:
811 265557 217 1153 383 1609 165 177 612 1602 1057 1428 37 436 135 1200 368 684 448 722 145 1583 325 1052 246 480 74 148 122 1111 1256 1327 304 1070 1285 1542 802 813 454 1563 265 1193 94 848 432 1156 429 1194 427 1230 1152 1406 1329 1355 702 845 591 1232 877 1288 1257 1549 340 659 1080 1333 910 137...
output:
001000000010111000100000000010100001011010111010110111111110000111010000101011011010001011001010111000001011000011011001000001011010001010000011100001010101100110010101011001101100100000100100001010000000100111110011110010001000000001011101100011100001000000101110100000001001100000011110101100100010...
result:
ok Output is valid. OK
Test #13:
score: 0
Accepted
time: 42ms
memory: 9852kb
input:
1691 323743 1246 2397 1445 2647 2010 2806 2001 2896 802 2258 2679 2976 2203 2875 2445 2698 137 3004 536 1800 2316 2520 594 1517 279 1558 1934 2871 57 1358 357 976 1764 2672 869 2137 1694 2201 491 1906 1177 1414 1304 1377 2454 2653 626 2637 1425 1677 620 876 1326 2085 404 874 626 1565 136 597 2885 31...
output:
000101110111111001001111011011101100010010100110100011010001111100011101110000111110111101011010000101000111000111001100011011001111001110110010001101001000001001001101011010101010111011011101000110100100000001101100111100001010111000100101101001010100100110110001011011001110011010000011000100010101...
result:
ok Output is valid. OK
Test #14:
score: 0
Accepted
time: 46ms
memory: 9216kb
input:
2891 285302 2273 3206 2376 4737 1075 5673 2493 5453 548 1902 603 1376 1948 2985 108 4730 2172 2948 947 1758 762 1558 2813 5701 2287 3502 297 1501 568 4247 4569 5071 832 3005 412 4226 1813 4519 726 3017 1658 3990 1771 3230 1705 2149 765 4782 5420 5652 3089 4727 4362 5054 1578 3729 1111 5740 2234 5691...
output:
110001001000000110011000111101001110110111100101011110101001010100100000100100000111010001100111111110000101010101101110111000010001001011000100110000000111001101010111111001011100000001001110101111110101010111000111000000000101011000110101011110001011100001000000000101011001001110001100001000110001...
result:
ok Output is valid. OK
Test #15:
score: 0
Accepted
time: 97ms
memory: 13240kb
input:
4413 717147 1990 3721 2169 8724 2894 5350 4689 5732 274 3456 3149 5664 463 6517 3482 7460 1820 5440 2995 6364 5476 7590 5989 8692 4286 7015 7520 8630 524 7821 3335 7017 1491 4477 6238 8230 6339 8087 565 8666 6188 6930 4280 7015 4393 8825 3686 6189 3711 6905 888 1997 2488 8544 9 3914 5135 5322 2778 6...
output:
010010011000101111001110011100101011010001010000011000000110101011101001001110101110011011110101100011110110100100011001100111111010111100000011100110010100010011110101000110000010001110100011110100010110010111100011001010100011010001001101011101000000001100100100101010110111111000011010001001110000...
result:
ok Output is valid. OK
Test #16:
score: 0
Accepted
time: 83ms
memory: 12004kb
input:
707 998991 16 83 733 1195 318 945 9 385 764 1338 396 833 408 1331 541 1405 167 1351 572 838 16 334 36 1071 765 873 445 930 48 168 857 1306 1066 1408 270 720 116 698 737 1136 460 1074 585 1195 492 690 1103 1122 698 1239 623 1355 30 140 952 1088 776 1138 71 525 690 1194 357 1062 366 632 46 744 312 520...
output:
110110010110010001001101110000000111110101010001100010101010010001101011001110011110101101100100001101010001001101000011010101001101001010110010101101001110111001000000010111010100000100011011011010101101110101111000100001101000000000001001111111000010110011110000100111010110110110000000010011101100...
result:
ok Output is valid. OK
Test #17:
score: 0
Accepted
time: 54ms
memory: 4672kb
input:
5000 0
output:
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
result:
ok Output is valid. OK
Test #18:
score: 0
Accepted
time: 51ms
memory: 4516kb
input:
5000 1 5104 7449
output:
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
result:
ok Output is valid. OK
Test #19:
score: 0
Accepted
time: 47ms
memory: 4504kb
input:
5000 13 8215 9259 4067 7015 4171 6513 1958 9790 5814 6551 711 3995 4392 8567 224 285 4618 4637 2864 8137 1910 2618 1881 5086 5503 9167
output:
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111111111111111111111111111111111111111111111111...
result:
ok Output is valid. OK
Test #20:
score: 0
Accepted
time: 50ms
memory: 4488kb
input:
5000 55 7866 9685 3869 9188 3142 5921 1328 5189 1186 4841 2865 4732 5504 5634 983 5412 6630 7625 6123 9142 2937 5558 1344 5103 5443 9618 3579 6083 1044 3407 1028 6125 2895 5649 2986 3484 3659 6044 5673 7508 276 5982 694 4033 1089 6272 2661 2831 6962 9163 2717 8822 4363 5916 249 8966 9331 9920 1551 2...
output:
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111110111111111111111111111111...
result:
ok Output is valid. OK
Test #21:
score: 0
Accepted
time: 19ms
memory: 4680kb
input:
5000 5000 4509 6534 1710 4635 1694 2754 3105 5501 6490 6786 4306 6866 483 6111 9513 9773 217 5738 4794 5634 2466 9426 4015 6665 596 4471 1608 8259 5463 5568 5672 5975 5791 6415 150 3738 487 9066 4093 6191 534 3270 2444 5041 4873 7509 6286 7749 3655 5175 414 9604 4068 9379 884 3731 3797 5637 6712 752...
output:
000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000001000000000000000000000000000000000001000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Output is valid. OK
Test #22:
score: 0
Accepted
time: 126ms
memory: 12864kb
input:
5000 1000000 536 2549 4636 9544 1417 8603 2634 4970 511 8885 7042 9446 1807 2806 4633 8212 1638 8794 2918 8150 1423 5343 2615 6301 7023 8526 2950 7562 6777 7968 4787 9333 4122 9857 993 6039 5459 6837 5589 7246 1644 9641 1778 7305 1334 1568 1436 9323 4902 6285 5497 6384 1584 4996 6710 8356 1371 9492 ...
output:
000001011111110111110110001011101100100100000101011010000010001110100001110111111001001111110101001100000001011100111001110011110011001111001100010010101000110001100101011011011100000011001011110111101100101100011111001011001110100000000110110100000000111111110110101001100000101010101001110101010101...
result:
ok Output is valid. OK
Test #23:
score: 0
Accepted
time: 104ms
memory: 10368kb
input:
5000 495000 1927 6272 319 8402 7428 7719 289 7279 5807 8628 6140 8646 4075 8413 696 5688 7701 9351 750 1728 6564 9033 6745 8163 966 3952 237 4595 354 6037 1298 9484 4760 6554 6813 7184 2000 5589 6527 7736 4393 4431 1085 5833 961 2976 1825 5871 7586 7938 2821 6067 2614 3037 4690 7071 1379 2915 2549 5...
output:
000100101111101101110011101111100111011100100101000011001011100101000011000100110011100011010000111010101000110011010101001101010010110000111100010100110101001100100111111000111011001011110101111110011101111101110101010100000001100111011011010001110110111010010110010011101101101000110110100011000101...
result:
ok Output is valid. OK
Test #24:
score: 0
Accepted
time: 118ms
memory: 13980kb
input:
5000 1000000 3687 8461 3809 9814 337 886 3428 9892 942 2973 8524 8951 925 9543 6849 8148 2376 3949 4190 4259 4199 6096 8339 9711 6516 7797 5545 7674 209 3223 662 5715 5678 8384 2169 7775 3548 7901 4428 9843 7170 8981 298 7908 4289 7413 8303 8786 995 7546 2742 6757 6629 8339 9288 9984 2515 3621 3395 ...
output:
110111110111101011111011011101101011111101111111110111111011101111101110111111110111111101101101011110011111111111000001011001111100111111110111011111011011111110111101111011011101110111011111111011111011111111110110101111101010011011111101011110111010111111111110111011110101011111110101001111111011...
result:
ok Output is valid. OK
Test #25:
score: 0
Accepted
time: 24ms
memory: 4836kb
input:
5000 9999 737 5889 737 4882 1887 4882 848 1887 8 848 8 5179 1297 5179 1297 9208 3815 9208 3815 3829 3829 9033 2270 9033 2270 4697 4697 7133 5327 7133 5327 7338 5589 7338 161 5589 161 3595 3049 3595 3049 4758 4758 5690 5381 5690 3553 5381 3553 9020 444 9020 444 9065 4259 9065 141 4259 141 4156 4156 4...
output:
010010111111100100101110110001010100111000001110111000010000001010001111100110001100001000111001000001100000101001111000011010011110000100111111010111111011100100111100111100001000101101100011000110111010110001101100111100111110110110110110110110001101100101011011111001000011000000110101111110111000...
result:
ok Output is valid. OK
Test #26:
score: 0
Accepted
time: 129ms
memory: 12604kb
input:
5000 1000000 319 8267 8030 8267 5231 8267 3908 8267 2559 8267 4944 8267 6340 8267 3107 8267 4472 8267 5497 8267 8267 9008 8267 9327 6568 8267 4094 8267 3208 8267 2123 8267 5123 8267 7920 8267 3334 8267 597 8267 1555 8267 1776 8267 3302 8267 458 8267 2460 8267 8087 8267 4228 8267 2656 8267 1427 8267 ...
output:
000110111100100100111111001111111110000011011101001111010110100000100100000000010010111000011110101100000011000000001110001010000101100101110111011010100111111110001000110101000010001101101000110101000000000011110010101000111100100100101000110010101011110111001011111111001111101111110000011001101011...
result:
ok Output is valid. OK
Test #27:
score: 0
Accepted
time: 110ms
memory: 13444kb
input:
4999 1000000 1945 9713 2776 5105 5767 7670 2100 5473 3738 8249 5250 8261 2562 4814 4236 7034 2759 9809 1694 2258 6762 8267 478 7929 7509 8920 2821 7747 1443 8354 5120 7961 1265 9374 1358 1653 3249 3272 2454 3235 6815 9797 4779 5118 256 2040 5358 9038 2108 6963 2100 2691 948 5754 1077 9015 4637 9604 ...
output:
110011010101001100100000101100101111100111100001110001001111101001000100011100010000111000100001001001111010000011111110010011111110001110100110010100001110111100110100010111101001111000011110011100011110011101011100000110010100100000001011001100011100000010111101101010001001000110100000110011001000...
result:
ok Output is valid. OK
Test #28:
score: 0
Accepted
time: 121ms
memory: 12848kb
input:
5000 1000000 4980 8636 1052 3782 7313 9788 374 6889 3746 9997 461 681 7184 9385 2132 4804 7844 9531 7148 8934 2509 4526 6073 6224 5981 7708 3066 4740 1769 8879 680 8142 3104 4153 5770 7300 9068 9797 5065 9659 1635 3293 3971 9835 261 5325 1700 6717 8220 9097 3576 7780 1890 8103 375 8874 8241 9797 208...
output:
000100010110101000011011111010000111011101000000010001101101110000011010001101110010110010010111000000001011111010001110010100101111110111100000001110110110110100101110000111101010010000010101010100101111011010111000110111111100100101001111011001001001010100010101000111001111101001000000010011001001...
result:
ok Output is valid. OK
Test #29:
score: 0
Accepted
time: 132ms
memory: 12784kb
input:
5000 1000000 74 9153 4917 5790 4122 6469 1392 9264 1162 1632 1197 2061 7323 9433 4370 9733 4373 8630 4049 9485 3642 6161 1723 4342 6700 9774 1449 5884 2114 9928 8673 9179 863 2883 8565 9042 2661 8507 3660 6765 740 863 3398 9983 147 890 2620 4485 7225 7616 1585 3182 9766 9780 2193 3702 18 7854 5503 6...
output:
010000010101011000000000010111000001101111101010001110011111111001001010111011010100010011011011101110010011111100110011111100110011111010110110110010110111011011100000111000101111100011101100100010111011101101110100001010000100101000011100101100001001101010011110001011010001001110001000110100111010...
result:
ok Output is valid. OK
Test #30:
score: 0
Accepted
time: 129ms
memory: 12632kb
input:
5000 1000000 3050 6455 3939 8403 1874 6162 2986 9941 852 5801 386 8466 495 7499 2459 9308 1686 4443 987 9119 4630 9635 176 1818 2640 4939 2486 8111 40 2084 2082 9813 1667 4883 3483 7503 2102 7413 8936 9473 346 4056 3327 6577 1735 2825 219 3217 2254 2724 1248 3728 1351 2485 3190 6930 82 2364 2423 636...
output:
001001101010010000010111011110110110111010010100011101001110011110001110101001000001010101000100101100100010101100100010110110101010010101000001001101111000011010010010101010001110000100101111100101100010111100111011000011100001010011010100111011001001001010100001111110001011110010011011111110010101...
result:
ok Output is valid. OK
Test #31:
score: 0
Accepted
time: 121ms
memory: 13264kb
input:
5000 1000000 6538 8438 4304 6693 7065 9302 3037 6801 4095 8249 1276 4477 2408 4434 2478 6247 6004 8935 4466 4715 1151 6515 1250 1889 2978 9379 1037 2639 7076 9796 169 586 3736 8350 868 1764 3907 7679 7664 9936 828 2117 4033 9026 5491 9378 5238 9408 5088 9303 4869 7800 1637 8981 264 8603 2800 5449 36...
output:
001000010010010111100011101000010101010111000100011000011101000010110010000110000101110010100101101000001000111100110100011001001100100110110000000010110111010110001101000100000110111110000111000111110010110000100000110101110100010011000000100110011011100001111000011000100000010000011011110000100010...
result:
ok Output is valid. OK
Test #32:
score: 0
Accepted
time: 129ms
memory: 14256kb
input:
5000 1000000 152 9616 1878 6998 7011 8703 7012 7957 8663 9347 377 1848 2810 8371 5223 7129 5963 7439 3732 9489 6426 6946 864 4359 3238 3410 2484 4641 3483 9331 1922 6128 3317 4347 324 4982 5504 6662 2721 8761 2458 2659 2368 5704 4627 7763 2387 5113 2579 4441 1442 3001 2839 8264 7684 8096 6554 9437 8...
output:
110000011111010110011011010110011100110001011000011001001011000011100011100001100100100000010010101011111101111110111101100010111110010111010110111011001001010110101001000100011100101010110001010111110011110000110000100111011010101101010010000010001111010011000111110101010000011101000010010100100010...
result:
ok Output is valid. OK
Test #33:
score: 0
Accepted
time: 129ms
memory: 13764kb
input:
5000 1000000 6363 8874 2676 6983 2507 9814 2321 6709 5513 9479 758 3802 9174 9303 7570 9399 1423 5184 2375 7455 4267 7936 1276 5976 266 8988 3255 3705 1558 8265 4726 9077 48 5976 1698 3731 2252 4859 1812 5083 1232 7595 900 8956 352 1881 4008 8624 1571 9422 1558 9355 6453 9026 5316 5885 4216 6621 298...
output:
011110011111001001110110100101000100011010001000100101111011111101111101111010010110101110001000010010101000111110111101111101011111011110110010010111011111110011010000001111101100001100010011111011101001001100111100110000000111001000101001000101111110111100110011101010000001000100111000110100011000...
result:
ok Output is valid. OK
Test #34:
score: 0
Accepted
time: 127ms
memory: 14308kb
input:
5000 1000000 5592 8823 558 8973 3456 9325 989 6727 2728 5609 159 8441 2163 6138 2860 5609 222 1961 3402 5663 5540 8423 2359 5363 1308 6363 7222 9634 5873 5885 1628 4692 7493 9959 6685 9965 990 6787 1823 9071 3839 6841 613 1071 673 8872 147 7105 4082 4633 2485 6375 217 5938 3840 6542 4515 7914 1520 6...
output:
110010011001001111001001111111011011101000101100011111000110011011001001110110001011100010011111100010010000011010001010100101010111110000110011000111011101000001100011101100011000100101001000111110001100101001101100001110111110100001101001010001001010000010000001001110010000110000101000010000001110...
result:
ok Output is valid. OK
Test #35:
score: 0
Accepted
time: 121ms
memory: 13480kb
input:
5000 1000000 1512 4189 7097 7367 192 8916 281 6863 6620 7934 2332 3221 388 3532 1174 1192 110 1581 5932 7670 2408 3278 2082 6702 3532 7992 426 7807 3394 8390 3705 7989 2339 5543 177 7407 5035 9000 3341 4549 1813 8938 7684 9075 5743 5783 2272 3928 9209 9435 1581 8409 30 2352 1420 2927 3714 7892 1404 ...
output:
100110101001010111011000111010100101100000010001101010100001100010101011010110101110111101110100101100000111101001101100101000100100111111110010000111100100110010011111001010010001001111010000110010011001100101000011100101110010000011100001000001000001000000010110000110111110000101011110101011100100...
result:
ok Output is valid. OK
Test #36:
score: 0
Accepted
time: 133ms
memory: 12556kb
input:
5000 1000000 1545 5876 1896 8371 7435 9094 4668 8702 2100 6691 1229 1240 131 6938 2175 5121 1236 1952 1900 7209 2991 7327 1433 1569 5409 5735 3172 7452 443 5807 1962 5929 1021 6314 1553 5980 4858 9394 4624 6587 5000 5255 650 2134 6695 7151 7423 8793 1564 5828 4020 6259 336 6229 6483 6495 3602 9751 1...
output:
000011101100110000111110001100000110111110100111100110011001010100011001001001011000100000110101101101000111111010010001010110101101111110001110001011010111101010001010011101110100010011100001010101111000000111111011000111011010101011011001111111111100010001111010001011111100110101110101101010000010...
result:
ok Output is valid. OK
Test #37:
score: 0
Accepted
time: 127ms
memory: 13640kb
input:
5000 1000000 4031 7636 2710 8599 1847 3793 3022 5832 3254 5604 1560 9907 76 2375 6979 9429 1669 7410 3578 5803 1510 7209 2981 7862 1847 2141 7433 7995 1881 8693 3793 5739 6089 7660 6548 7767 2961 8216 1532 9092 9504 9507 6979 7304 563 7127 435 3028 7283 9777 5304 7302 3463 5286 1442 9716 3439 6414 4...
output:
010001111001101101111010010100011110110010000011101010010100100010001110110010000011011010110111110101111100101011011100110101101000000111011101010111110111111111000110111100011111001010110111110010010010100010101011011000011011000000111101001001100111111100111101101111100100100100110010010100001101...
result:
ok Output is valid. OK
Test #38:
score: 0
Accepted
time: 133ms
memory: 13552kb
input:
5000 1000000 1991 3681 7662 7810 1492 3512 5242 5846 3955 4823 5456 9277 5901 6044 3805 8683 1324 7913 1964 2455 885 8157 3162 3932 6849 8831 1417 2184 3220 9562 1813 4698 7917 9125 2449 7498 5274 9525 127 4338 2517 6373 3648 4394 2019 2194 5903 8896 5137 7615 1263 4179 6055 6322 1233 1973 6914 8987...
output:
110101000001110001001110011110010101110100110011111111001111110011011000111100101111000001101100101011000011101001001000011010011111100100100111000001101111110101001110010111111101111100100010101100001000111111101011000001010111111101101011111110010010010100100001000100001111100111011101011000010101...
result:
ok Output is valid. OK
Test #39:
score: 0
Accepted
time: 54ms
memory: 6140kb
input:
5000 192643 1651 2284 1275 2284 1275 1592 1027 2284 1027 1592 1027 1216 843 2284 843 1592 843 1216 843 968 691 2284 691 1592 691 1216 691 968 691 784 555 2284 555 1592 555 1216 555 968 555 784 555 632 427 2284 427 1592 427 1216 427 968 427 784 427 632 427 496 303 2284 303 1592 303 1216 303 968 303 7...
output:
000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000...
result:
ok Output is valid. OK
Test #40:
score: 0
Accepted
time: 120ms
memory: 13324kb
input:
5000 1000000 7710 9828 3419 8943 6873 8522 483 8368 1358 4886 1392 8682 5871 9778 6239 9414 4905 7202 364 9391 3701 9368 7651 9022 3260 9758 1885 9887 894 2006 1105 4554 2281 4875 2045 8552 4445 7162 161 6908 1721 3309 3352 5539 7963 8600 402 2008 1720 6606 3402 5029 1455 2927 8557 9203 146 1702 134...
output:
010010010101101000111000000100111100011011011001001110100001110100001100001101001001010010000010000101100101100111101010111100110101011100011110010000111110011000011011010110101010011101100100111010011000000101011101100010111100011101000100110000100000101011011010100010010001011001000000100100110111...
result:
ok Output is valid. OK
Test #41:
score: 0
Accepted
time: 139ms
memory: 13580kb
input:
5000 1000000 3420 6333 2013 3592 1358 9366 1759 8622 757 8951 1785 7499 8985 9206 1475 6110 6161 6785 5009 5172 4778 8463 5690 6912 3897 6128 969 7380 416 8184 544 2675 3049 5270 5118 9305 3874 6942 3845 8315 810 1551 5058 7576 7994 9175 2449 8068 7694 8084 1282 4753 741 8495 3737 9174 4656 5293 262...
output:
110000110011010110010011101101110011100010111100001001010100010110101011001010010001001110001100010000011011110001100111000110111010100110010000100000111100111100110100111000010110010001010011011111110101111111011001101101110100010101010001111000011101111100011100111111110001000111000111010101001100...
result:
ok Output is valid. OK
Test #42:
score: 0
Accepted
time: 132ms
memory: 13224kb
input:
5000 1000000 4485 5659 4251 8327 3032 9771 1212 6150 6162 7038 5511 7556 431 5575 125 1024 5183 9691 3049 9866 3319 9057 7378 9590 2433 6119 6487 6604 4825 5723 1298 5093 1982 5060 7658 9662 3939 8488 902 5122 1082 6614 2293 3432 4787 7443 3217 8326 4857 6751 2046 3085 2346 8018 5836 9377 2467 5164 ...
output:
111101011010000101000001111011111010101011000101001111010101010110110101010000111100110101101011000000110001010110011110010000010001100011110111101010110100100010111010111111100001010010101110100111110011000011000001101000000001011111010010100111011110001110000010011110110001001011111010101110111110...
result:
ok Output is valid. OK
Test #43:
score: 0
Accepted
time: 123ms
memory: 14464kb
input:
5000 1000000 1990 3328 77 5833 1068 7006 4354 7677 1059 7321 1882 3532 1356 6651 4074 7318 7528 9355 4873 9462 1216 6079 388 978 3194 3416 3218 5532 2347 4391 5837 9596 4645 9522 4950 9719 7824 8794 79 8993 9 7002 2137 4299 2344 9511 1430 9299 1397 4095 398 1576 6847 8051 4557 6738 5086 6595 1613 69...
output:
111010110101001000101010011110100100011000011001011010001010010110010110101001100110000101000100111100101111111111100000111110110111011011111100001001010101011110110100001111110000100000000010101001111110101101101001001010010010111010111000100010010101111101110010001111110001001100101001111010101110...
result:
ok Output is valid. OK
Test #44:
score: 0
Accepted
time: 131ms
memory: 12652kb
input:
5000 1000000 5589 6328 8651 9590 6036 9666 722 3584 4071 9148 1198 7337 160 5495 3219 4037 2050 4910 4951 9951 1682 5349 1962 3099 470 3183 185 541 1621 3261 1201 6766 989 2699 2207 6246 1848 5354 3827 9426 164 2273 8472 8942 3397 9354 1750 1838 2411 8253 813 9704 6436 7519 7095 8448 2990 9301 5143 ...
output:
101000010011011010011001001101111100100000001001100101100110111000111010101110000000101110011001001001110001011001101001001101000011011011010101101100001100110100111111011100100010010111111101101100111100010110111010100001100110010110011110111011000111111111100010001010110000011101000100101001101111...
result:
ok Output is valid. OK
Extra Test:
score: 0
Extra Test Passed