QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#177089 | #4919. Tree | ZhangYiDe | 100 ✓ | 205ms | 3936kb | C++14 | 825b | 2023-09-12 15:40:56 | 2023-09-12 15:40:56 |
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
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms
memory: 3684kb
input:
5 [1, 1, 3, 2]
output:
51241247 5 17
result:
ok
Test #2:
score: 5
Accepted
time: 0ms
memory: 3708kb
input:
5 [3, 1, 1, 1]
output:
51241247 5 17
result:
ok
Test #3:
score: 5
Accepted
time: 1ms
memory: 3752kb
input:
5 [3, 4, 1, 1]
output:
51241247 5 19
result:
ok
Test #4:
score: 5
Accepted
time: 1ms
memory: 3680kb
input:
5 [4, 1, 3, 1]
output:
51241247 5 19
result:
ok
Test #5:
score: 5
Accepted
time: 0ms
memory: 3684kb
input:
5 [5, 1, 1, 1]
output:
51241247 5 17
result:
ok
Subtask #2:
score: 15
Accepted
Test #6:
score: 15
Accepted
time: 1ms
memory: 3812kb
input:
100 [87, 24, 6, 96, 97, 49, 71, 38, 97, 42, 83, 71, 94, 57, 70, 83, 3, 43, 69, 18, 13, 52, 71, 62, 1, 89, 87, 22, 1, 71, 56, 97, 62, 21, 61, 86, 64, 49, 68, 78, 84, 1, 1, 96, 71, 3, 26, 1, 62, 29, 87, 64, 41, 100, 69, 80, 29, 49, 20, 96, 8, 98, 1, 57, 47, 44, 43, 71, 3, 97, 44, 96, 98, 56, 78, 49, 4...
output:
51241247 5 1156
result:
ok
Test #7:
score: 15
Accepted
time: 1ms
memory: 3756kb
input:
100 [1, 4, 1, 62, 19, 8, 72, 19, 39, 93, 66, 57, 60, 24, 76, 52, 1, 93, 93, 2, 4, 89, 96, 1, 3, 25, 85, 51, 72, 72, 33, 24, 11, 52, 15, 24, 51, 1, 58, 15, 9, 26, 82, 52, 3, 13, 36, 93, 11, 14, 60, 52, 45, 10, 78, 21, 14, 52, 2, 4, 70, 85, 87, 27, 45, 79, 11, 2, 19, 44, 2, 34, 59, 11, 56, 85, 51, 24,...
output:
51241247 5 1162
result:
ok
Test #8:
score: 15
Accepted
time: 1ms
memory: 3736kb
input:
100 [24, 59, 7, 40, 50, 37, 89, 74, 31, 39, 16, 79, 94, 19, 1, 43, 31, 1, 19, 34, 8, 8, 34, 12, 1, 19, 48, 79, 79, 16, 99, 53, 15, 39, 94, 51, 66, 50, 69, 8, 77, 27, 45, 46, 19, 4, 6, 55, 16, 79, 5, 91, 62, 46, 19, 99, 10, 79, 9, 95, 77, 45, 63, 79, 11, 31, 31, 85, 50, 62, 86, 31, 31, 93, 63, 16, 11...
output:
51241247 5 1160
result:
ok
Test #9:
score: 15
Accepted
time: 0ms
memory: 3696kb
input:
100 [19, 18, 21, 25, 21, 33, 16, 40, 65, 73, 44, 51, 42, 85, 62, 39, 40, 70, 9, 89, 63, 91, 5, 95, 44, 67, 44, 60, 15, 95, 85, 84, 32, 89, 51, 78, 96, 67, 15, 85, 45, 54, 1, 15, 96, 2, 24, 19, 1, 32, 44, 2, 60, 45, 53, 5, 63, 24, 47, 7, 40, 67, 89, 94, 20, 1, 2, 77, 45, 42, 36, 94, 26, 45, 49, 89, 9...
output:
51241247 5 1160
result:
ok
Test #10:
score: 15
Accepted
time: 0ms
memory: 3692kb
input:
100 [17, 60, 99, 67, 46, 46, 17, 96, 20, 49, 60, 66, 66, 46, 27, 100, 37, 65, 13, 49, 66, 46, 3, 56, 46, 46, 8, 41, 46, 71, 53, 24, 28, 36, 82, 100, 89, 73, 70, 8, 81, 79, 12, 88, 1, 70, 70, 3, 89, 8, 45, 7, 55, 1, 73, 83, 89, 99, 46, 72, 34, 78, 12, 66, 46, 17, 7, 76, 1, 12, 66, 70, 5, 84, 1, 100, ...
output:
51241247 5 1166
result:
ok
Subtask #3:
score: 20
Accepted
Test #11:
score: 20
Accepted
time: 115ms
memory: 3820kb
input:
1000 [48, 746, 543, 690, 745, 354, 663, 101, 296, 293, 342, 419, 303, 517, 104, 555, 318, 929, 351, 857, 104, 178, 526, 369, 860, 782, 912, 50, 182, 620, 651, 23, 621, 734, 446, 786, 526, 8, 373, 395, 958, 283, 121, 727, 630, 588, 527, 997, 103, 571, 3, 67, 181, 539, 141, 772, 677, 656, 147, 337, 60...
output:
51241247 5 18182
result:
ok
Test #12:
score: 20
Accepted
time: 99ms
memory: 3804kb
input:
1000 [308, 322, 306, 926, 798, 33, 930, 409, 896, 988, 95, 836, 218, 890, 44, 551, 148, 582, 738, 404, 145, 596, 963, 469, 184, 905, 918, 22, 993, 575, 555, 604, 631, 583, 156, 574, 472, 826, 50, 212, 474, 930, 294, 641, 275, 212, 35, 662, 5, 146, 689, 799, 342, 256, 116, 996, 216, 442, 80, 834, 6, ...
output:
51241247 5 18160
result:
ok
Test #13:
score: 20
Accepted
time: 106ms
memory: 3800kb
input:
1000 [314, 997, 88, 440, 460, 849, 356, 855, 592, 97, 795, 67, 942, 214, 880, 583, 755, 723, 734, 676, 94, 213, 493, 640, 148, 381, 59, 190, 622, 244, 521, 488, 714, 138, 531, 944, 778, 47, 290, 157, 964, 181, 664, 344, 449, 539, 593, 713, 731, 454, 761, 371, 637, 949, 866, 780, 191, 579, 281, 50, 2...
output:
51241247 5 18172
result:
ok
Test #14:
score: 20
Accepted
time: 105ms
memory: 3800kb
input:
1000 [747, 91, 53, 247, 108, 125, 497, 502, 74, 309, 160, 459, 358, 92, 610, 608, 252, 20, 981, 309, 615, 114, 34, 880, 842, 75, 875, 772, 494, 118, 323, 508, 441, 39, 846, 187, 752, 765, 212, 498, 625, 60, 750, 549, 218, 207, 765, 384, 530, 23, 865, 257, 951, 366, 718, 386, 647, 710, 271, 546, 51, ...
output:
51241247 5 18192
result:
ok
Test #15:
score: 20
Accepted
time: 105ms
memory: 3800kb
input:
1000 [645, 254, 369, 732, 312, 638, 148, 996, 208, 257, 626, 731, 87, 687, 531, 708, 761, 390, 885, 812, 955, 870, 322, 589, 289, 374, 464, 488, 348, 664, 474, 403, 438, 34, 229, 150, 525, 46, 45, 410, 186, 742, 320, 810, 57, 892, 289, 976, 76, 94, 7, 473, 780, 711, 49, 469, 151, 634, 736, 2, 717, 5...
output:
51241247 5 18194
result:
ok
Test #16:
score: 20
Accepted
time: 104ms
memory: 3812kb
input:
1000 [74, 237, 574, 745, 1000, 503, 282, 402, 98, 675, 613, 28, 376, 543, 425, 401, 623, 886, 809, 471, 938, 682, 498, 329, 527, 555, 136, 132, 774, 511, 650, 863, 375, 653, 998, 32, 70, 110, 954, 810, 591, 876, 261, 262, 760, 828, 95, 343, 693, 704, 565, 696, 735, 383, 237, 552, 754, 465, 697, 968,...
output:
51241247 5 18160
result:
ok
Test #17:
score: 20
Accepted
time: 104ms
memory: 3804kb
input:
1000 [905, 484, 340, 421, 564, 415, 67, 517, 459, 849, 4, 611, 204, 682, 203, 458, 904, 826, 769, 748, 328, 195, 515, 579, 999, 867, 482, 220, 297, 382, 486, 632, 443, 99, 361, 97, 971, 221, 289, 175, 185, 161, 309, 434, 740, 470, 222, 534, 886, 267, 886, 769, 376, 232, 4, 969, 980, 648, 358, 557, 2...
output:
51241247 5 18202
result:
ok
Test #18:
score: 20
Accepted
time: 102ms
memory: 3848kb
input:
1000 [497, 479, 295, 186, 209, 776, 436, 734, 379, 91, 136, 541, 318, 227, 578, 181, 377, 873, 75, 698, 964, 682, 590, 212, 515, 971, 222, 336, 718, 493, 524, 285, 650, 954, 173, 287, 758, 482, 934, 136, 470, 299, 102, 619, 8, 760, 716, 947, 468, 871, 607, 71, 958, 260, 482, 83, 375, 859, 979, 697, ...
output:
51241247 5 18200
result:
ok
Test #19:
score: 20
Accepted
time: 113ms
memory: 3780kb
input:
1000 [160, 563, 463, 801, 245, 614, 429, 349, 295, 355, 167, 225, 697, 946, 976, 629, 373, 550, 956, 319, 641, 137, 192, 585, 21, 658, 660, 393, 609, 133, 618, 71, 180, 473, 403, 795, 82, 758, 750, 345, 160, 683, 941, 212, 235, 983, 135, 733, 535, 390, 363, 894, 280, 545, 441, 766, 636, 396, 756, 40...
output:
51241247 5 18152
result:
ok
Test #20:
score: 20
Accepted
time: 105ms
memory: 3868kb
input:
1000 [286, 328, 975, 668, 929, 752, 520, 338, 739, 251, 405, 141, 988, 602, 259, 649, 822, 484, 723, 947, 459, 799, 677, 407, 817, 864, 794, 182, 270, 51, 518, 122, 566, 673, 763, 52, 867, 861, 468, 417, 834, 922, 83, 9, 220, 302, 113, 640, 749, 292, 403, 166, 492, 828, 255, 303, 309, 927, 278, 617,...
output:
51241247 5 18200
result:
ok
Test #21:
score: 20
Accepted
time: 100ms
memory: 3912kb
input:
1000 [917, 110, 194, 703, 581, 574, 604, 974, 628, 151, 314, 93, 458, 964, 456, 525, 674, 109, 435, 762, 461, 600, 576, 71, 106, 761, 998, 778, 654, 399, 874, 406, 690, 998, 339, 412, 135, 724, 517, 827, 791, 966, 285, 91, 779, 525, 673, 259, 24, 730, 907, 398, 433, 488, 811, 220, 43, 175, 504, 44, ...
output:
51241247 5 18144
result:
ok
Test #22:
score: 20
Accepted
time: 104ms
memory: 3796kb
input:
1000 [547, 499, 891, 632, 954, 19, 16, 668, 599, 314, 270, 768, 461, 670, 784, 991, 934, 109, 354, 625, 832, 860, 855, 927, 419, 431, 480, 627, 20, 414, 971, 946, 951, 92, 739, 377, 197, 215, 470, 406, 676, 407, 458, 982, 173, 94, 303, 634, 757, 488, 813, 631, 800, 742, 939, 795, 304, 912, 686, 722,...
output:
51241247 5 18172
result:
ok
Test #23:
score: 20
Accepted
time: 104ms
memory: 3804kb
input:
1000 [423, 976, 822, 993, 930, 885, 20, 434, 144, 399, 356, 817, 765, 830, 912, 541, 658, 13, 886, 758, 501, 243, 272, 290, 702, 38, 983, 852, 248, 552, 955, 893, 381, 718, 18, 837, 133, 970, 490, 234, 182, 340, 303, 318, 313, 289, 759, 539, 73, 896, 761, 668, 530, 28, 221, 93, 878, 618, 942, 360, 1...
output:
51241247 5 18158
result:
ok
Test #24:
score: 20
Accepted
time: 105ms
memory: 3816kb
input:
1000 [11, 330, 385, 511, 122, 839, 746, 388, 389, 194, 862, 605, 900, 480, 698, 951, 149, 693, 808, 925, 430, 242, 397, 173, 253, 340, 938, 432, 426, 210, 559, 439, 861, 77, 665, 700, 247, 280, 414, 750, 121, 609, 908, 102, 543, 104, 830, 949, 303, 304, 763, 924, 482, 4, 616, 333, 664, 731, 515, 115...
output:
51241247 5 18174
result:
ok
Test #25:
score: 20
Accepted
time: 104ms
memory: 3804kb
input:
1000 [142, 77, 923, 586, 463, 782, 286, 341, 906, 537, 372, 22, 833, 587, 553, 553, 427, 815, 65, 481, 713, 526, 653, 993, 828, 418, 20, 807, 769, 459, 398, 199, 276, 998, 729, 196, 942, 203, 320, 846, 184, 296, 922, 604, 529, 504, 854, 530, 13, 387, 929, 212, 938, 253, 694, 715, 143, 647, 527, 878,...
output:
51241247 5 18194
result:
ok
Test #26:
score: 20
Accepted
time: 105ms
memory: 3852kb
input:
1000 [421, 757, 789, 333, 661, 93, 282, 131, 585, 829, 375, 288, 77, 380, 818, 801, 304, 26, 761, 290, 853, 597, 423, 809, 869, 730, 942, 448, 49, 537, 669, 663, 661, 972, 900, 914, 231, 155, 174, 686, 452, 379, 255, 328, 18, 73, 570, 778, 968, 651, 513, 962, 62, 604, 965, 196, 954, 240, 71, 316, 74...
output:
51241247 5 18124
result:
ok
Test #27:
score: 20
Accepted
time: 106ms
memory: 3868kb
input:
1000 [444, 871, 149, 955, 673, 951, 327, 972, 28, 87, 965, 736, 350, 633, 625, 365, 657, 627, 234, 365, 110, 644, 799, 677, 474, 472, 426, 492, 308, 209, 350, 915, 667, 248, 211, 331, 154, 649, 541, 830, 219, 454, 679, 220, 540, 28, 508, 446, 901, 279, 961, 411, 737, 841, 428, 661, 281, 732, 441, 65...
output:
51241247 5 18130
result:
ok
Test #28:
score: 20
Accepted
time: 107ms
memory: 3832kb
input:
1000 [738, 1, 822, 993, 452, 739, 79, 824, 267, 208, 552, 481, 793, 488, 103, 775, 735, 315, 953, 572, 91, 703, 129, 349, 30, 624, 749, 446, 420, 730, 623, 296, 493, 137, 711, 318, 511, 867, 304, 872, 489, 172, 983, 708, 99, 232, 483, 381, 368, 124, 561, 648, 108, 612, 621, 247, 27, 373, 52, 519, 50...
output:
51241247 5 18174
result:
ok
Test #29:
score: 20
Accepted
time: 105ms
memory: 3800kb
input:
1000 [229, 901, 777, 791, 628, 796, 881, 883, 828, 581, 218, 26, 203, 630, 985, 756, 963, 31, 421, 580, 303, 231, 478, 411, 174, 277, 710, 80, 985, 610, 68, 59, 947, 933, 955, 66, 272, 791, 950, 145, 83, 582, 734, 494, 47, 472, 781, 553, 336, 487, 792, 176, 973, 356, 505, 209, 121, 805, 113, 530, 56...
output:
51241247 5 18172
result:
ok
Test #30:
score: 20
Accepted
time: 104ms
memory: 3896kb
input:
1000 [119, 201, 848, 254, 544, 269, 173, 155, 595, 293, 214, 478, 221, 305, 689, 871, 446, 800, 284, 71, 745, 567, 955, 490, 911, 25, 140, 593, 957, 648, 913, 876, 569, 437, 159, 224, 47, 497, 653, 533, 737, 950, 108, 188, 636, 643, 377, 851, 925, 524, 71, 121, 542, 701, 684, 438, 94, 713, 618, 89, ...
output:
51241247 5 18180
result:
ok
Test #31:
score: 20
Accepted
time: 105ms
memory: 3848kb
input:
999 [669, 278, 560, 15, 849, 659, 417, 994, 722, 775, 950, 75, 381, 656, 661, 580, 985, 863, 519, 622, 532, 988, 919, 581, 254, 704, 568, 250, 890, 619, 375, 789, 53, 723, 430, 525, 799, 414, 865, 339, 309, 635, 547, 116, 635, 321, 284, 445, 194, 837, 735, 332, 459, 640, 575, 519, 407, 599, 11, 840,...
output:
51241247 5 18165
result:
ok
Test #32:
score: 20
Accepted
time: 94ms
memory: 3808kb
input:
999 [251, 955, 678, 977, 947, 605, 152, 691, 941, 679, 76, 677, 519, 188, 982, 899, 546, 502, 484, 287, 108, 646, 802, 98, 363, 87, 54, 944, 901, 333, 572, 27, 483, 43, 774, 675, 516, 952, 404, 108, 896, 858, 920, 960, 756, 396, 435, 969, 443, 356, 303, 200, 601, 29, 794, 408, 331, 136, 1, 885, 701,...
output:
51241247 5 18175
result:
ok
Test #33:
score: 20
Accepted
time: 97ms
memory: 3872kb
input:
999 [123, 542, 258, 893, 812, 88, 497, 749, 975, 106, 466, 271, 855, 13, 839, 424, 571, 633, 613, 601, 801, 864, 132, 522, 671, 98, 155, 576, 700, 893, 338, 60, 983, 259, 178, 698, 730, 449, 859, 708, 605, 162, 28, 241, 308, 991, 81, 867, 894, 776, 775, 969, 495, 151, 853, 289, 582, 265, 264, 627, 5...
output:
51241247 5 18151
result:
ok
Test #34:
score: 20
Accepted
time: 102ms
memory: 3872kb
input:
999 [46, 733, 82, 811, 991, 505, 18, 374, 37, 60, 319, 948, 711, 827, 131, 290, 80, 872, 546, 108, 659, 552, 680, 50, 562, 586, 733, 129, 113, 247, 454, 878, 278, 404, 191, 584, 710, 507, 433, 149, 183, 842, 347, 29, 284, 502, 275, 87, 867, 414, 931, 800, 640, 528, 583, 302, 467, 833, 41, 454, 301, ...
output:
51241247 5 18141
result:
ok
Test #35:
score: 20
Accepted
time: 99ms
memory: 3780kb
input:
999 [216, 197, 376, 666, 820, 907, 109, 420, 386, 182, 311, 431, 51, 109, 615, 467, 777, 550, 564, 17, 471, 742, 297, 160, 520, 248, 66, 251, 995, 563, 719, 321, 846, 854, 606, 606, 767, 172, 671, 284, 168, 678, 290, 853, 570, 406, 87, 969, 56, 674, 591, 188, 958, 762, 373, 174, 329, 740, 137, 931, ...
output:
51241247 5 18159
result:
ok
Test #36:
score: 20
Accepted
time: 101ms
memory: 3836kb
input:
999 [471, 449, 264, 761, 703, 65, 587, 109, 563, 785, 55, 879, 854, 244, 725, 688, 585, 916, 730, 64, 784, 149, 60, 665, 75, 333, 324, 305, 336, 284, 127, 869, 42, 645, 982, 834, 104, 354, 644, 927, 258, 330, 839, 467, 985, 210, 613, 702, 497, 386, 190, 408, 586, 863, 435, 940, 342, 548, 450, 514, 3...
output:
51241247 5 18173
result:
ok
Test #37:
score: 20
Accepted
time: 101ms
memory: 3868kb
input:
999 [75, 283, 776, 780, 242, 486, 830, 359, 69, 891, 616, 735, 560, 575, 518, 860, 564, 303, 355, 536, 426, 40, 48, 36, 45, 850, 754, 288, 565, 208, 618, 180, 397, 244, 699, 129, 380, 152, 691, 379, 961, 740, 258, 475, 3, 558, 363, 586, 368, 687, 662, 131, 825, 86, 119, 507, 421, 1, 140, 519, 767, 2...
output:
51241247 5 18121
result:
ok
Test #38:
score: 20
Accepted
time: 97ms
memory: 3776kb
input:
999 [247, 764, 294, 133, 632, 359, 996, 233, 971, 838, 248, 946, 435, 813, 652, 900, 448, 949, 355, 755, 417, 828, 619, 30, 481, 171, 957, 301, 693, 792, 905, 647, 366, 541, 459, 608, 793, 870, 143, 227, 860, 599, 946, 30, 8, 379, 325, 386, 323, 990, 187, 603, 789, 286, 9, 217, 482, 742, 968, 117, 2...
output:
51241247 5 18155
result:
ok
Test #39:
score: 20
Accepted
time: 96ms
memory: 3780kb
input:
999 [608, 606, 697, 630, 543, 296, 41, 923, 46, 807, 269, 176, 385, 297, 176, 395, 891, 592, 552, 76, 540, 195, 591, 586, 170, 334, 174, 107, 528, 543, 697, 989, 754, 822, 252, 722, 485, 718, 156, 113, 835, 907, 995, 974, 73, 186, 106, 107, 296, 293, 326, 416, 857, 189, 726, 191, 120, 882, 958, 728,...
output:
51241247 5 18169
result:
ok
Test #40:
score: 20
Accepted
time: 99ms
memory: 3756kb
input:
999 [363, 624, 896, 152, 323, 275, 652, 448, 234, 346, 824, 334, 982, 267, 15, 330, 663, 808, 428, 500, 193, 379, 325, 905, 667, 570, 665, 857, 385, 82, 394, 54, 385, 560, 645, 909, 422, 82, 687, 427, 759, 141, 508, 968, 689, 852, 326, 23, 966, 577, 286, 227, 442, 789, 682, 983, 981, 635, 795, 229, ...
output:
51241247 5 18141
result:
ok
Test #41:
score: 20
Accepted
time: 103ms
memory: 3796kb
input:
999 [889, 671, 81, 66, 246, 836, 330, 660, 194, 753, 751, 609, 333, 938, 721, 805, 888, 920, 496, 446, 534, 581, 666, 717, 362, 326, 624, 256, 891, 956, 669, 183, 409, 314, 62, 442, 519, 834, 912, 742, 92, 557, 767, 692, 751, 172, 620, 752, 705, 91, 389, 982, 846, 476, 509, 165, 544, 759, 71, 628, 2...
output:
51241247 5 18137
result:
ok
Test #42:
score: 20
Accepted
time: 101ms
memory: 3888kb
input:
999 [31, 86, 43, 242, 884, 700, 71, 946, 57, 62, 250, 326, 898, 22, 135, 930, 764, 380, 564, 996, 759, 655, 441, 1, 546, 457, 678, 973, 693, 644, 75, 454, 71, 994, 772, 244, 181, 138, 743, 731, 364, 83, 113, 254, 390, 976, 961, 250, 132, 362, 157, 661, 592, 724, 133, 157, 182, 125, 997, 887, 880, 65...
output:
51241247 5 18165
result:
ok
Test #43:
score: 20
Accepted
time: 93ms
memory: 3772kb
input:
999 [310, 109, 162, 250, 971, 733, 670, 832, 647, 951, 745, 687, 389, 649, 162, 423, 436, 790, 232, 428, 117, 432, 915, 409, 371, 108, 142, 304, 901, 877, 816, 634, 290, 761, 988, 953, 971, 861, 696, 744, 736, 952, 391, 555, 555, 624, 645, 647, 441, 508, 496, 663, 30, 952, 63, 335, 111, 466, 59, 603...
output:
51241247 5 18187
result:
ok
Test #44:
score: 20
Accepted
time: 100ms
memory: 3788kb
input:
999 [86, 939, 437, 254, 768, 778, 247, 195, 350, 1, 369, 814, 320, 886, 317, 37, 823, 487, 652, 534, 178, 902, 275, 123, 171, 496, 771, 699, 39, 312, 768, 147, 696, 17, 296, 531, 461, 713, 815, 794, 766, 237, 26, 179, 494, 302, 713, 523, 776, 744, 492, 414, 297, 532, 847, 532, 12, 65, 603, 869, 737,...
output:
51241247 5 18193
result:
ok
Test #45:
score: 20
Accepted
time: 99ms
memory: 3788kb
input:
999 [158, 458, 311, 766, 702, 285, 982, 919, 273, 18, 935, 609, 512, 958, 366, 206, 516, 683, 651, 885, 291, 278, 407, 81, 421, 756, 847, 935, 315, 723, 756, 452, 725, 85, 222, 388, 268, 477, 627, 755, 294, 450, 5, 110, 835, 752, 896, 703, 338, 19, 914, 867, 581, 799, 83, 339, 204, 406, 185, 815, 65...
output:
51241247 5 18151
result:
ok
Test #46:
score: 20
Accepted
time: 96ms
memory: 3884kb
input:
999 [667, 48, 374, 192, 66, 76, 645, 255, 273, 881, 993, 634, 696, 1, 373, 871, 444, 100, 229, 872, 233, 420, 993, 713, 326, 198, 496, 648, 61, 368, 763, 465, 800, 955, 833, 609, 3, 420, 887, 933, 18, 669, 818, 714, 327, 88, 382, 207, 284, 76, 99, 66, 103, 679, 826, 919, 636, 277, 508, 37, 664, 992,...
output:
51241247 5 18133
result:
ok
Test #47:
score: 20
Accepted
time: 100ms
memory: 3768kb
input:
999 [455, 208, 244, 2, 602, 982, 232, 261, 225, 409, 947, 566, 174, 19, 199, 501, 783, 922, 313, 973, 288, 569, 184, 148, 238, 12, 712, 999, 167, 135, 308, 291, 22, 406, 742, 622, 492, 725, 130, 218, 375, 435, 922, 97, 129, 548, 539, 933, 779, 723, 81, 584, 183, 948, 332, 442, 366, 66, 28, 310, 607,...
output:
51241247 5 18157
result:
ok
Test #48:
score: 20
Accepted
time: 97ms
memory: 3824kb
input:
999 [648, 952, 90, 874, 989, 372, 645, 708, 384, 154, 70, 908, 481, 351, 65, 352, 255, 254, 939, 971, 2, 883, 21, 723, 750, 841, 355, 200, 677, 564, 917, 183, 157, 54, 526, 651, 907, 476, 608, 279, 110, 636, 130, 817, 980, 700, 171, 989, 162, 920, 375, 889, 513, 139, 282, 5, 407, 570, 394, 718, 37, ...
output:
51241247 5 18167
result:
ok
Test #49:
score: 20
Accepted
time: 97ms
memory: 3872kb
input:
999 [249, 730, 663, 940, 206, 42, 693, 464, 938, 439, 107, 336, 839, 583, 769, 854, 746, 182, 712, 827, 542, 768, 708, 468, 131, 989, 505, 862, 662, 790, 625, 495, 581, 846, 783, 230, 412, 999, 885, 360, 260, 36, 533, 691, 711, 787, 281, 19, 735, 474, 647, 851, 414, 594, 601, 439, 164, 698, 677, 234...
output:
51241247 5 18139
result:
ok
Test #50:
score: 20
Accepted
time: 100ms
memory: 3792kb
input:
999 [959, 742, 254, 553, 438, 884, 12, 288, 256, 462, 300, 478, 205, 753, 520, 186, 961, 571, 289, 517, 479, 575, 893, 882, 700, 874, 873, 812, 456, 227, 995, 966, 766, 416, 864, 443, 715, 657, 243, 166, 735, 250, 287, 476, 979, 465, 945, 183, 185, 261, 995, 821, 645, 677, 723, 138, 899, 812, 691, 3...
output:
51241247 5 18151
result:
ok
Subtask #4:
score: 20
Accepted
Test #51:
score: 20
Accepted
time: 97ms
memory: 3812kb
input:
1000 [307, 211, 947, 874, 742, 558, 903, 224, 334, 417, 246, 410, 417, 111, 659, 995, 306, 640, 782, 213, 294, 264, 706, 73, 389, 303, 777, 213, 731, 396, 804, 561, 839, 111, 864, 820, 736, 488, 195, 870, 310, 76, 467, 730, 565, 219, 72, 228, 428, 135, 570, 160, 108, 177, 596, 679, 369, 687, 409, 59...
output:
51241247 5 18160
result:
ok
Test #52:
score: 20
Accepted
time: 96ms
memory: 3852kb
input:
1000 [807, 468, 32, 237, 241, 472, 64, 17, 472, 14, 849, 857, 271, 516, 19, 415, 528, 536, 887, 282, 67, 590, 309, 315, 552, 684, 471, 166, 715, 816, 931, 937, 755, 668, 353, 616, 627, 809, 961, 971, 41, 802, 401, 249, 472, 433, 326, 387, 971, 462, 514, 897, 677, 648, 413, 573, 531, 837, 166, 279, 3...
output:
51241247 5 18164
result:
ok
Test #53:
score: 20
Accepted
time: 99ms
memory: 3792kb
input:
1000 [232, 801, 638, 389, 672, 566, 828, 713, 944, 425, 304, 440, 867, 259, 245, 591, 702, 892, 573, 414, 724, 611, 650, 867, 281, 577, 549, 549, 73, 125, 588, 601, 99, 618, 2, 126, 162, 559, 872, 914, 655, 344, 250, 367, 616, 239, 802, 111, 62, 288, 7, 267, 120, 262, 35, 383, 143, 821, 20, 631, 267...
output:
51241247 5 18134
result:
ok
Test #54:
score: 20
Accepted
time: 93ms
memory: 3808kb
input:
1000 [800, 535, 45, 512, 43, 685, 898, 884, 943, 235, 20, 854, 688, 481, 203, 921, 925, 663, 117, 509, 149, 380, 382, 497, 570, 112, 8, 120, 414, 541, 955, 146, 837, 552, 751, 392, 437, 798, 296, 191, 232, 433, 583, 895, 660, 20, 681, 446, 72, 309, 412, 812, 552, 702, 1, 351, 432, 561, 1, 64, 715, 2...
output:
51241247 5 18120
result:
ok
Test #55:
score: 20
Accepted
time: 97ms
memory: 3828kb
input:
1000 [209, 190, 931, 992, 970, 493, 526, 470, 838, 528, 263, 807, 131, 466, 468, 523, 523, 439, 842, 491, 847, 287, 125, 618, 679, 310, 271, 957, 958, 730, 640, 541, 544, 212, 419, 238, 652, 859, 775, 317, 795, 986, 64, 228, 940, 514, 391, 390, 536, 418, 464, 453, 563, 939, 983, 562, 445, 997, 459, ...
output:
51241247 5 18130
result:
ok
Test #56:
score: 20
Accepted
time: 96ms
memory: 3860kb
input:
1000 [441, 533, 442, 243, 755, 915, 860, 115, 345, 275, 720, 658, 9, 846, 943, 250, 887, 347, 925, 733, 97, 709, 365, 54, 520, 280, 943, 908, 331, 941, 1, 912, 10, 103, 804, 19, 362, 217, 708, 352, 266, 216, 735, 765, 234, 68, 6, 765, 879, 446, 45, 831, 978, 3, 703, 81, 101, 9, 517, 661, 178, 602, 5...
output:
51241247 5 18126
result:
ok
Test #57:
score: 20
Accepted
time: 98ms
memory: 3784kb
input:
1000 [975, 242, 590, 47, 148, 755, 160, 405, 824, 904, 326, 281, 385, 403, 433, 39, 667, 708, 755, 185, 971, 306, 587, 600, 485, 124, 364, 35, 156, 600, 738, 984, 187, 441, 906, 843, 788, 757, 479, 455, 995, 506, 491, 93, 952, 298, 327, 204, 146, 327, 443, 295, 254, 927, 309, 494, 260, 152, 684, 205...
output:
51241247 5 18174
result:
ok
Test #58:
score: 20
Accepted
time: 97ms
memory: 3792kb
input:
1000 [396, 48, 244, 371, 348, 725, 773, 396, 505, 473, 745, 109, 684, 594, 373, 943, 815, 537, 43, 375, 68, 269, 96, 824, 293, 345, 93, 311, 642, 722, 628, 588, 206, 976, 101, 411, 508, 535, 456, 756, 953, 532, 168, 880, 920, 382, 781, 781, 187, 946, 182, 467, 826, 50, 546, 209, 496, 137, 401, 866, ...
output:
51241247 5 18200
result:
ok
Test #59:
score: 20
Accepted
time: 101ms
memory: 3764kb
input:
1000 [161, 533, 477, 427, 492, 233, 503, 822, 451, 624, 163, 779, 530, 221, 986, 81, 541, 613, 965, 283, 647, 140, 579, 684, 100, 558, 821, 531, 1, 750, 973, 176, 544, 276, 107, 81, 917, 371, 883, 889, 387, 85, 297, 279, 900, 838, 821, 630, 993, 620, 623, 601, 898, 863, 892, 233, 467, 208, 462, 928,...
output:
51241247 5 18134
result:
ok
Test #60:
score: 20
Accepted
time: 96ms
memory: 3808kb
input:
1000 [302, 873, 786, 226, 579, 169, 232, 177, 743, 297, 941, 501, 891, 354, 896, 948, 571, 941, 467, 74, 920, 978, 910, 514, 649, 708, 722, 673, 226, 929, 237, 651, 154, 367, 840, 908, 900, 571, 981, 824, 134, 762, 32, 255, 103, 38, 456, 755, 780, 281, 125, 281, 529, 35, 497, 852, 356, 247, 851, 269...
output:
51241247 5 18156
result:
ok
Test #61:
score: 20
Accepted
time: 93ms
memory: 3788kb
input:
1000 [837, 48, 164, 492, 878, 746, 380, 767, 379, 256, 1, 164, 714, 565, 916, 741, 629, 662, 771, 557, 29, 919, 640, 846, 481, 681, 705, 198, 278, 304, 80, 557, 931, 400, 584, 745, 189, 777, 853, 923, 587, 752, 244, 136, 871, 95, 150, 399, 319, 75, 409, 963, 74, 131, 556, 396, 413, 781, 340, 28, 620...
output:
51241247 5 18164
result:
ok
Test #62:
score: 20
Accepted
time: 98ms
memory: 3792kb
input:
1000 [452, 960, 998, 459, 480, 510, 118, 612, 758, 115, 792, 330, 846, 822, 234, 917, 372, 618, 338, 174, 814, 131, 510, 892, 1, 735, 26, 933, 825, 729, 75, 457, 57, 314, 17, 149, 895, 733, 338, 521, 716, 21, 997, 879, 572, 171, 136, 109, 866, 357, 41, 348, 448, 941, 405, 113, 423, 758, 171, 318, 27...
output:
51241247 5 18168
result:
ok
Test #63:
score: 20
Accepted
time: 97ms
memory: 3852kb
input:
1000 [360, 803, 103, 729, 386, 554, 818, 866, 362, 200, 572, 813, 994, 560, 115, 232, 145, 922, 978, 480, 25, 742, 77, 221, 120, 950, 145, 530, 976, 251, 689, 829, 620, 297, 356, 862, 801, 160, 501, 296, 133, 806, 252, 533, 814, 122, 157, 571, 929, 814, 397, 417, 13, 682, 671, 800, 583, 846, 150, 32...
output:
51241247 5 18122
result:
ok
Test #64:
score: 20
Accepted
time: 93ms
memory: 3804kb
input:
1000 [428, 752, 254, 568, 376, 991, 213, 112, 116, 513, 528, 268, 846, 828, 258, 444, 405, 647, 169, 594, 143, 803, 441, 228, 512, 536, 248, 505, 800, 599, 821, 138, 212, 349, 756, 778, 592, 303, 167, 594, 881, 964, 349, 819, 56, 231, 845, 689, 981, 907, 460, 331, 178, 821, 317, 175, 433, 482, 57, 3...
output:
51241247 5 18140
result:
ok
Test #65:
score: 20
Accepted
time: 103ms
memory: 3880kb
input:
1000 [247, 350, 201, 399, 212, 708, 235, 154, 358, 466, 120, 708, 155, 160, 887, 230, 620, 658, 558, 877, 887, 893, 870, 625, 290, 23, 799, 235, 903, 576, 270, 999, 735, 620, 27, 218, 235, 628, 90, 937, 202, 546, 78, 110, 40, 250, 806, 160, 159, 717, 145, 409, 678, 111, 759, 397, 121, 1000, 942, 546...
output:
51241247 5 18168
result:
ok
Test #66:
score: 20
Accepted
time: 96ms
memory: 3784kb
input:
1000 [153, 981, 624, 905, 471, 248, 162, 632, 525, 160, 366, 823, 850, 561, 532, 118, 651, 35, 922, 346, 873, 231, 76, 862, 559, 375, 982, 713, 222, 799, 28, 301, 634, 346, 980, 816, 204, 581, 160, 445, 921, 680, 708, 954, 29, 655, 452, 13, 878, 892, 204, 656, 918, 199, 792, 673, 567, 912, 129, 243,...
output:
51241247 5 18142
result:
ok
Test #67:
score: 20
Accepted
time: 102ms
memory: 3788kb
input:
1000 [569, 221, 142, 502, 590, 677, 103, 932, 403, 429, 707, 887, 820, 957, 692, 655, 292, 522, 381, 258, 171, 262, 693, 267, 131, 80, 824, 182, 809, 576, 234, 605, 777, 84, 563, 609, 851, 381, 358, 514, 431, 512, 346, 492, 466, 329, 486, 558, 589, 437, 795, 390, 916, 681, 966, 13, 727, 618, 704, 30...
output:
51241247 5 18150
result:
ok
Test #68:
score: 20
Accepted
time: 98ms
memory: 3860kb
input:
1000 [820, 136, 439, 179, 522, 467, 74, 718, 594, 833, 677, 755, 327, 22, 53, 515, 964, 496, 954, 769, 162, 162, 693, 622, 172, 753, 555, 947, 548, 852, 225, 270, 827, 231, 271, 364, 395, 617, 513, 56, 771, 447, 785, 120, 9, 654, 673, 688, 981, 597, 172, 366, 506, 508, 824, 693, 913, 194, 504, 743, ...
output:
51241247 5 18216
result:
ok
Test #69:
score: 20
Accepted
time: 94ms
memory: 3812kb
input:
1000 [511, 476, 212, 798, 956, 400, 136, 198, 445, 156, 988, 288, 349, 187, 156, 282, 752, 74, 497, 400, 492, 722, 164, 541, 804, 366, 781, 964, 350, 999, 308, 719, 286, 218, 288, 758, 338, 643, 731, 770, 756, 826, 934, 864, 725, 543, 327, 999, 731, 48, 471, 302, 27, 472, 677, 434, 314, 961, 88, 1, ...
output:
51241247 5 18182
result:
ok
Test #70:
score: 20
Accepted
time: 96ms
memory: 3808kb
input:
1000 [284, 672, 530, 167, 96, 465, 206, 441, 682, 429, 940, 312, 940, 395, 230, 940, 792, 831, 55, 602, 808, 1, 371, 403, 503, 516, 561, 573, 892, 374, 897, 396, 277, 792, 415, 456, 565, 587, 362, 990, 520, 528, 612, 844, 405, 293, 592, 602, 259, 200, 96, 608, 191, 335, 602, 703, 705, 87, 397, 367, ...
output:
51241247 5 18132
result:
ok
Subtask #5:
score: 40
Accepted
Test #71:
score: 40
Accepted
time: 97ms
memory: 3852kb
input:
1000 [616, 930, 806, 984, 513, 569, 529, 311, 596, 772, 675, 813, 629, 815, 731, 395, 639, 223, 738, 24, 682, 890, 70, 216, 1, 311, 78, 446, 721, 775, 970, 770, 272, 670, 908, 636, 673, 921, 259, 488, 170, 903, 442, 937, 714, 46, 893, 365, 882, 432, 880, 234, 656, 754, 879, 55, 588, 356, 281, 671, 7...
output:
51241247 5 18136
result:
ok
Test #72:
score: 40
Accepted
time: 97ms
memory: 3812kb
input:
1000 [197, 993, 697, 229, 491, 973, 516, 110, 963, 356, 92, 176, 380, 888, 759, 124, 801, 608, 533, 814, 570, 391, 109, 755, 888, 274, 376, 698, 608, 937, 372, 23, 436, 774, 574, 978, 56, 875, 336, 739, 1, 850, 880, 961, 690, 287, 249, 487, 995, 259, 189, 412, 181, 574, 650, 825, 246, 792, 45, 928, ...
output:
51241247 5 18190
result:
ok
Test #73:
score: 40
Accepted
time: 93ms
memory: 3820kb
input:
1000 [104, 736, 882, 773, 443, 746, 715, 774, 489, 57, 754, 200, 249, 331, 652, 482, 324, 840, 60, 187, 692, 505, 187, 459, 922, 327, 180, 835, 298, 571, 605, 871, 341, 818, 44, 795, 770, 744, 197, 390, 468, 277, 52, 487, 904, 524, 768, 197, 300, 657, 37, 976, 418, 630, 289, 728, 504, 657, 31, 634, ...
output:
51241247 5 18158
result:
ok
Test #74:
score: 40
Accepted
time: 94ms
memory: 3784kb
input:
1000 [152, 684, 560, 846, 366, 531, 1000, 611, 883, 562, 387, 100, 164, 594, 274, 951, 567, 408, 771, 719, 473, 435, 320, 711, 134, 884, 143, 704, 384, 631, 73, 645, 487, 561, 702, 920, 349, 320, 375, 948, 308, 846, 430, 684, 391, 371, 152, 360, 974, 14, 74, 212, 601, 276, 700, 382, 80, 944, 996, 99...
output:
51241247 5 18156
result:
ok
Test #75:
score: 40
Accepted
time: 92ms
memory: 3860kb
input:
1000 [47, 130, 997, 810, 700, 90, 78, 974, 906, 112, 309, 803, 739, 365, 536, 29, 161, 57, 841, 36, 236, 328, 945, 964, 968, 510, 472, 811, 968, 591, 647, 542, 116, 369, 149, 48, 189, 364, 12, 393, 147, 350, 112, 955, 498, 235, 248, 394, 894, 306, 146, 674, 72, 818, 101, 350, 672, 204, 343, 248, 942...
output:
51241247 5 18130
result:
ok
Test #76:
score: 40
Accepted
time: 103ms
memory: 3856kb
input:
1000 [515, 81, 72, 688, 946, 675, 228, 71, 960, 69, 457, 222, 898, 237, 773, 644, 82, 610, 859, 650, 872, 641, 153, 686, 416, 782, 890, 50, 961, 416, 637, 537, 550, 591, 898, 852, 75, 676, 363, 364, 454, 641, 186, 564, 560, 929, 443, 295, 250, 354, 528, 17, 773, 741, 989, 722, 822, 668, 635, 279, 11...
output:
51241247 5 18184
result:
ok
Test #77:
score: 40
Accepted
time: 103ms
memory: 3808kb
input:
1000 [906, 874, 278, 997, 147, 1, 96, 168, 312, 527, 840, 686, 911, 425, 52, 659, 551, 370, 6, 83, 889, 788, 114, 122, 350, 187, 859, 708, 660, 401, 494, 531, 193, 234, 81, 705, 694, 361, 827, 606, 667, 754, 548, 527, 891, 442, 917, 852, 39, 729, 696, 22, 110, 688, 412, 454, 13, 712, 540, 580, 200, ...
output:
51241247 5 18146
result:
ok
Test #78:
score: 40
Accepted
time: 102ms
memory: 3764kb
input:
1000 [590, 186, 918, 697, 171, 509, 112, 342, 59, 936, 423, 940, 643, 453, 611, 851, 497, 1, 298, 290, 932, 601, 952, 939, 587, 673, 243, 152, 502, 580, 650, 703, 541, 570, 459, 796, 679, 671, 867, 191, 118, 602, 928, 909, 157, 802, 970, 907, 1, 32, 536, 114, 938, 264, 277, 802, 929, 590, 879, 19, 7...
output:
51241247 5 18154
result:
ok
Test #79:
score: 40
Accepted
time: 93ms
memory: 3784kb
input:
1000 [161, 545, 252, 523, 107, 239, 602, 838, 728, 230, 216, 765, 925, 54, 131, 213, 125, 616, 127, 137, 655, 960, 271, 330, 582, 880, 68, 189, 40, 418, 647, 30, 545, 650, 483, 497, 949, 442, 177, 84, 797, 925, 133, 602, 286, 246, 14, 43, 187, 121, 372, 446, 916, 494, 85, 896, 240, 1, 616, 907, 303,...
output:
51241247 5 18198
result:
ok
Test #80:
score: 40
Accepted
time: 97ms
memory: 3852kb
input:
1000 [228, 719, 93, 293, 504, 212, 896, 52, 455, 899, 849, 270, 660, 388, 816, 847, 82, 539, 525, 316, 837, 471, 811, 555, 691, 391, 720, 436, 426, 448, 867, 194, 893, 101, 777, 649, 54, 673, 420, 366, 567, 502, 475, 966, 13, 271, 837, 347, 38, 876, 1, 633, 511, 864, 591, 770, 115, 972, 270, 529, 43...
output:
51241247 5 18108
result:
ok
Test #81:
score: 40
Accepted
time: 110ms
memory: 3820kb
input:
1000 [497, 147, 194, 138, 891, 951, 107, 125, 172, 952, 897, 900, 50, 22, 660, 231, 193, 277, 31, 120, 816, 358, 319, 258, 118, 733, 288, 227, 318, 921, 760, 538, 819, 431, 942, 908, 83, 174, 28, 998, 894, 186, 937, 958, 490, 843, 882, 689, 175, 608, 795, 124, 217, 54, 431, 85, 528, 561, 580, 660, 7...
output:
51241247 5 18192
result:
ok
Test #82:
score: 40
Accepted
time: 97ms
memory: 3860kb
input:
1000 [93, 125, 541, 508, 138, 619, 618, 404, 223, 687, 891, 662, 313, 251, 158, 314, 127, 566, 243, 15, 789, 508, 965, 966, 750, 34, 53, 256, 550, 322, 724, 69, 257, 485, 314, 563, 867, 538, 10, 199, 31, 656, 77, 23, 62, 396, 282, 658, 738, 258, 713, 919, 725, 590, 417, 445, 404, 491, 556, 33, 439, ...
output:
51241247 5 18182
result:
ok
Test #83:
score: 40
Accepted
time: 108ms
memory: 3860kb
input:
1000 [493, 550, 112, 858, 850, 467, 904, 549, 779, 836, 488, 929, 735, 515, 877, 854, 513, 897, 34, 466, 286, 762, 868, 26, 763, 800, 572, 557, 791, 282, 787, 735, 583, 716, 730, 183, 719, 7, 376, 877, 515, 802, 810, 758, 524, 75, 716, 768, 493, 575, 971, 91, 14, 904, 370, 466, 395, 944, 380, 730, 7...
output:
51241247 5 18134
result:
ok
Test #84:
score: 40
Accepted
time: 104ms
memory: 3736kb
input:
1000 [852, 991, 266, 209, 624, 520, 230, 688, 439, 753, 745, 458, 794, 276, 323, 164, 149, 42, 14, 859, 7, 330, 681, 990, 317, 599, 63, 606, 803, 55, 763, 813, 295, 400, 545, 726, 384, 859, 408, 852, 857, 427, 1, 620, 226, 872, 648, 653, 336, 384, 12, 486, 664, 486, 874, 239, 657, 725, 882, 557, 747...
output:
51241247 5 18188
result:
ok
Test #85:
score: 40
Accepted
time: 96ms
memory: 3708kb
input:
1000 [758, 36, 828, 151, 1, 340, 908, 245, 217, 119, 690, 594, 357, 260, 577, 625, 859, 16, 678, 828, 661, 81, 754, 425, 216, 799, 5, 37, 648, 241, 546, 480, 825, 606, 230, 378, 698, 995, 403, 981, 818, 313, 874, 528, 36, 453, 805, 55, 552, 999, 802, 944, 1, 85, 475, 469, 976, 688, 344, 81, 396, 511...
output:
51241247 5 18148
result:
ok
Test #86:
score: 40
Accepted
time: 94ms
memory: 3780kb
input:
1000 [944, 736, 222, 922, 161, 801, 798, 826, 632, 118, 863, 912, 486, 74, 466, 60, 156, 78, 516, 257, 51, 648, 798, 466, 44, 17, 640, 336, 438, 631, 534, 144, 899, 12, 390, 561, 985, 863, 451, 469, 364, 897, 752, 26, 606, 415, 230, 249, 213, 763, 888, 410, 406, 278, 463, 571, 725, 968, 845, 447, 34...
output:
51241247 5 18132
result:
ok
Test #87:
score: 40
Accepted
time: 100ms
memory: 3856kb
input:
1000 [971, 355, 655, 100, 731, 216, 856, 294, 46, 400, 630, 188, 174, 947, 542, 692, 380, 609, 960, 125, 403, 455, 71, 616, 140, 408, 581, 766, 563, 458, 308, 253, 4, 553, 753, 943, 918, 502, 159, 228, 193, 210, 89, 609, 594, 21, 502, 230, 607, 910, 916, 230, 966, 970, 164, 318, 996, 341, 619, 745, ...
output:
51241247 5 18182
result:
ok
Test #88:
score: 40
Accepted
time: 104ms
memory: 3820kb
input:
1000 [532, 210, 319, 504, 504, 357, 333, 148, 630, 662, 831, 123, 757, 37, 318, 536, 719, 11, 891, 350, 590, 648, 691, 676, 396, 781, 826, 554, 620, 630, 461, 571, 682, 713, 829, 324, 922, 608, 901, 603, 369, 555, 4, 713, 927, 963, 96, 781, 390, 816, 420, 146, 789, 285, 971, 865, 995, 532, 842, 355,...
output:
51241247 5 18140
result:
ok
Test #89:
score: 40
Accepted
time: 96ms
memory: 3788kb
input:
1000 [820, 754, 963, 992, 676, 137, 66, 38, 457, 584, 597, 163, 140, 539, 522, 682, 564, 963, 880, 159, 518, 734, 39, 45, 494, 140, 357, 883, 908, 3, 189, 73, 379, 438, 750, 87, 232, 82, 840, 821, 85, 513, 525, 883, 668, 177, 251, 478, 905, 602, 305, 314, 719, 799, 403, 32, 325, 273, 519, 529, 941, ...
output:
51241247 5 18166
result:
ok
Test #90:
score: 40
Accepted
time: 99ms
memory: 3844kb
input:
1000 [700, 916, 866, 508, 300, 352, 558, 295, 44, 287, 518, 751, 901, 242, 542, 960, 635, 158, 790, 471, 225, 747, 2, 946, 944, 779, 57, 287, 702, 304, 312, 99, 522, 496, 18, 171, 975, 635, 484, 604, 727, 15, 630, 57, 542, 683, 214, 651, 149, 326, 460, 856, 344, 996, 588, 751, 173, 715, 258, 696, 76...
output:
51241247 5 18174
result:
ok
Test #91:
score: 40
Accepted
time: 98ms
memory: 3804kb
input:
999 [658, 304, 487, 95, 999, 589, 548, 405, 793, 207, 359, 287, 697, 348, 944, 467, 349, 166, 624, 612, 170, 799, 453, 630, 237, 531, 988, 765, 901, 57, 835, 409, 654, 733, 964, 804, 270, 993, 804, 705, 743, 560, 536, 260, 323, 185, 952, 181, 243, 415, 557, 313, 737, 729, 424, 862, 958, 258, 338, 19...
output:
51241247 5 18135
result:
ok
Test #92:
score: 40
Accepted
time: 96ms
memory: 3776kb
input:
999 [252, 292, 387, 216, 925, 647, 835, 946, 841, 912, 500, 539, 498, 45, 74, 110, 429, 214, 680, 29, 942, 734, 477, 91, 561, 269, 181, 11, 463, 616, 780, 372, 657, 468, 746, 152, 990, 423, 682, 754, 615, 378, 858, 929, 807, 230, 487, 728, 592, 275, 759, 216, 492, 815, 124, 157, 103, 46, 130, 311, 8...
output:
51241247 5 18157
result:
ok
Test #93:
score: 40
Accepted
time: 99ms
memory: 3848kb
input:
999 [550, 87, 867, 330, 401, 445, 298, 331, 22, 41, 639, 453, 462, 137, 255, 397, 305, 862, 61, 445, 71, 925, 1, 459, 403, 557, 871, 305, 16, 683, 474, 164, 479, 542, 827, 618, 585, 949, 798, 785, 73, 272, 500, 661, 863, 354, 87, 437, 581, 645, 98, 38, 897, 704, 243, 997, 664, 747, 408, 679, 143, 29...
output:
51241247 5 18125
result:
ok
Test #94:
score: 40
Accepted
time: 100ms
memory: 3888kb
input:
999 [128, 641, 372, 862, 938, 649, 860, 684, 308, 480, 495, 905, 109, 709, 423, 312, 495, 718, 55, 732, 873, 197, 793, 518, 62, 899, 470, 817, 921, 850, 662, 790, 919, 226, 417, 360, 238, 882, 51, 27, 410, 107, 173, 468, 800, 605, 903, 369, 979, 153, 364, 306, 810, 69, 951, 187, 333, 246, 314, 705, ...
output:
51241247 5 18149
result:
ok
Test #95:
score: 40
Accepted
time: 99ms
memory: 3844kb
input:
999 [954, 616, 207, 942, 826, 815, 871, 70, 840, 321, 58, 425, 765, 655, 218, 450, 228, 992, 350, 798, 558, 37, 333, 762, 522, 555, 944, 317, 395, 148, 770, 556, 384, 802, 859, 47, 975, 345, 309, 355, 186, 325, 870, 148, 342, 976, 528, 394, 487, 477, 285, 7, 321, 557, 811, 787, 200, 188, 979, 767, 9...
output:
51241247 5 18135
result:
ok
Test #96:
score: 40
Accepted
time: 109ms
memory: 3772kb
input:
999 [805, 850, 386, 443, 102, 584, 214, 269, 293, 381, 513, 182, 667, 554, 951, 660, 220, 138, 258, 784, 683, 831, 287, 755, 102, 383, 789, 210, 550, 286, 602, 468, 852, 166, 640, 361, 224, 641, 788, 722, 452, 765, 750, 581, 495, 451, 769, 470, 876, 216, 211, 481, 860, 257, 412, 464, 44, 300, 260, 4...
output:
51241247 5 18153
result:
ok
Test #97:
score: 40
Accepted
time: 98ms
memory: 3780kb
input:
999 [825, 833, 32, 954, 64, 936, 738, 288, 379, 502, 90, 96, 360, 140, 737, 925, 901, 651, 338, 179, 786, 71, 560, 774, 257, 812, 386, 633, 696, 792, 596, 890, 866, 877, 467, 473, 958, 621, 747, 475, 920, 536, 759, 239, 79, 821, 223, 714, 493, 538, 637, 873, 621, 118, 407, 936, 987, 522, 527, 232, 4...
output:
51241247 5 18149
result:
ok
Test #98:
score: 40
Accepted
time: 100ms
memory: 3792kb
input:
999 [744, 722, 341, 229, 93, 455, 589, 629, 305, 295, 90, 876, 780, 114, 348, 476, 93, 209, 210, 235, 30, 870, 910, 459, 478, 859, 562, 950, 969, 377, 878, 31, 984, 40, 777, 950, 322, 404, 996, 858, 603, 452, 756, 752, 334, 889, 690, 193, 807, 199, 319, 658, 487, 310, 215, 537, 859, 308, 970, 419, 5...
output:
51241247 5 18185
result:
ok
Test #99:
score: 40
Accepted
time: 98ms
memory: 3776kb
input:
999 [714, 226, 798, 729, 563, 625, 92, 800, 486, 776, 464, 991, 869, 673, 671, 635, 155, 961, 920, 629, 843, 412, 385, 651, 660, 769, 684, 868, 244, 920, 13, 68, 368, 7, 455, 48, 85, 352, 32, 413, 842, 451, 487, 990, 15, 549, 205, 313, 692, 456, 905, 963, 249, 632, 388, 28, 515, 579, 275, 191, 465, ...
output:
51241247 5 18137
result:
ok
Test #100:
score: 40
Accepted
time: 101ms
memory: 3768kb
input:
999 [792, 735, 253, 810, 262, 569, 403, 379, 621, 197, 29, 593, 152, 875, 800, 169, 881, 353, 901, 125, 278, 672, 198, 918, 276, 694, 605, 617, 608, 415, 311, 976, 459, 693, 977, 500, 888, 198, 843, 132, 247, 42, 576, 270, 805, 73, 769, 685, 209, 226, 938, 14, 230, 209, 311, 839, 481, 299, 705, 834,...
output:
51241247 5 18187
result:
ok
Test #101:
score: 40
Accepted
time: 98ms
memory: 3844kb
input:
999 [844, 239, 76, 974, 750, 646, 99, 583, 929, 921, 279, 173, 713, 839, 754, 145, 726, 537, 45, 579, 66, 591, 660, 831, 820, 497, 175, 552, 568, 937, 784, 498, 948, 450, 452, 50, 154, 16, 799, 946, 236, 793, 334, 394, 199, 420, 970, 938, 465, 580, 935, 9, 338, 968, 894, 103, 388, 354, 296, 286, 685...
output:
51241247 5 18149
result:
ok
Test #102:
score: 40
Accepted
time: 99ms
memory: 3776kb
input:
999 [669, 413, 175, 589, 539, 525, 795, 866, 511, 515, 892, 596, 108, 366, 237, 805, 378, 633, 870, 521, 566, 248, 654, 297, 6, 375, 57, 558, 105, 713, 804, 809, 802, 322, 555, 965, 110, 543, 136, 820, 873, 708, 556, 559, 987, 797, 946, 512, 937, 831, 634, 316, 975, 926, 530, 679, 306, 691, 842, 464...
output:
51241247 5 18197
result:
ok
Test #103:
score: 40
Accepted
time: 105ms
memory: 3792kb
input:
999 [564, 829, 461, 644, 878, 893, 810, 345, 716, 936, 928, 873, 48, 120, 611, 741, 790, 83, 889, 983, 958, 764, 483, 628, 44, 447, 170, 556, 674, 129, 236, 382, 258, 552, 353, 341, 635, 29, 502, 952, 715, 762, 671, 186, 549, 959, 273, 721, 905, 590, 377, 84, 319, 445, 503, 183, 681, 202, 95, 641, 7...
output:
51241247 5 18159
result:
ok
Test #104:
score: 40
Accepted
time: 98ms
memory: 3848kb
input:
999 [700, 416, 858, 941, 766, 399, 904, 511, 702, 521, 668, 604, 937, 507, 7, 679, 431, 116, 636, 83, 526, 617, 485, 216, 568, 913, 893, 150, 373, 518, 869, 664, 92, 947, 250, 574, 974, 788, 616, 674, 389, 326, 126, 249, 379, 374, 479, 315, 442, 855, 82, 574, 609, 294, 956, 221, 738, 413, 807, 35, 6...
output:
51241247 5 18189
result:
ok
Test #105:
score: 40
Accepted
time: 99ms
memory: 3772kb
input:
999 [692, 412, 31, 823, 319, 159, 786, 564, 838, 114, 282, 39, 222, 450, 928, 507, 537, 692, 565, 181, 891, 58, 584, 82, 981, 945, 95, 774, 907, 760, 395, 426, 719, 115, 506, 468, 15, 183, 458, 129, 806, 82, 106, 614, 483, 530, 195, 883, 471, 418, 613, 504, 72, 689, 240, 875, 199, 272, 426, 567, 724...
output:
51241247 5 18163
result:
ok
Test #106:
score: 40
Accepted
time: 96ms
memory: 3768kb
input:
999 [614, 594, 150, 78, 449, 393, 56, 533, 868, 344, 977, 155, 972, 464, 683, 324, 207, 575, 220, 549, 382, 690, 523, 230, 6, 546, 719, 445, 104, 939, 166, 393, 761, 924, 503, 120, 833, 138, 332, 487, 476, 343, 201, 484, 685, 444, 733, 76, 211, 161, 495, 57, 113, 51, 270, 758, 963, 801, 182, 147, 50...
output:
51241247 5 18171
result:
ok
Test #107:
score: 40
Accepted
time: 98ms
memory: 3840kb
input:
999 [926, 778, 537, 419, 815, 73, 602, 695, 801, 758, 98, 63, 795, 193, 19, 371, 186, 498, 543, 515, 97, 459, 992, 107, 472, 382, 906, 350, 557, 484, 323, 91, 307, 895, 459, 915, 958, 69, 863, 654, 316, 815, 137, 993, 759, 622, 544, 147, 750, 27, 829, 763, 873, 926, 977, 313, 220, 66, 991, 34, 309, ...
output:
51241247 5 18179
result:
ok
Test #108:
score: 40
Accepted
time: 97ms
memory: 3804kb
input:
999 [431, 892, 987, 811, 463, 999, 917, 553, 954, 862, 240, 300, 111, 422, 497, 326, 789, 630, 450, 868, 485, 760, 972, 126, 230, 516, 178, 361, 902, 694, 519, 236, 524, 233, 367, 651, 733, 221, 364, 884, 185, 93, 453, 894, 504, 948, 537, 290, 855, 128, 63, 965, 945, 225, 416, 733, 173, 313, 774, 30...
output:
51241247 5 18165
result:
ok
Test #109:
score: 40
Accepted
time: 102ms
memory: 3776kb
input:
999 [739, 276, 579, 907, 539, 925, 201, 242, 250, 523, 407, 683, 883, 875, 162, 29, 494, 693, 48, 570, 103, 18, 357, 42, 539, 982, 107, 550, 894, 286, 585, 653, 5, 974, 29, 621, 190, 896, 308, 762, 985, 751, 468, 191, 794, 696, 722, 637, 111, 962, 330, 815, 439, 27, 382, 141, 212, 517, 778, 651, 870...
output:
51241247 5 18103
result:
ok
Test #110:
score: 40
Accepted
time: 96ms
memory: 3788kb
input:
999 [621, 656, 236, 954, 107, 896, 573, 892, 883, 384, 485, 990, 732, 102, 592, 386, 397, 173, 739, 170, 388, 944, 693, 90, 489, 733, 312, 329, 843, 342, 752, 949, 225, 428, 913, 909, 557, 592, 427, 476, 118, 754, 633, 789, 333, 498, 530, 692, 892, 908, 628, 32, 194, 4, 551, 791, 611, 869, 647, 551,...
output:
51241247 5 18155
result:
ok
Test #111:
score: 40
Accepted
time: 96ms
memory: 3788kb
input:
1000 [457, 925, 809, 650, 191, 317, 235, 142, 709, 864, 271, 809, 538, 495, 186, 350, 662, 702, 925, 698, 154, 990, 9, 359, 671, 867, 545, 127, 191, 886, 947, 179, 70, 127, 479, 545, 612, 336, 383, 127, 10, 197, 53, 127, 305, 284, 734, 654, 463, 385, 337, 248, 69, 820, 708, 898, 127, 277, 796, 320, ...
output:
51241247 5 18158
result:
ok
Test #112:
score: 40
Accepted
time: 94ms
memory: 3776kb
input:
1000 [950, 587, 875, 121, 517, 845, 442, 52, 931, 955, 244, 811, 447, 90, 688, 711, 600, 11, 249, 989, 244, 804, 483, 504, 888, 582, 972, 704, 480, 204, 582, 835, 767, 159, 634, 434, 178, 67, 816, 577, 678, 100, 837, 647, 227, 766, 187, 365, 933, 858, 724, 36, 676, 972, 359, 376, 348, 227, 13, 807, ...
output:
51241247 5 18182
result:
ok
Test #113:
score: 40
Accepted
time: 98ms
memory: 3808kb
input:
1000 [918, 692, 357, 599, 742, 448, 722, 383, 426, 499, 816, 774, 691, 375, 853, 740, 848, 933, 537, 664, 594, 942, 691, 528, 863, 364, 671, 468, 36, 444, 37, 548, 810, 117, 142, 170, 552, 78, 966, 600, 133, 152, 674, 451, 841, 640, 351, 4, 25, 740, 768, 348, 532, 585, 91, 402, 844, 582, 967, 22, 34...
output:
51241247 5 18178
result:
ok
Test #114:
score: 40
Accepted
time: 96ms
memory: 3896kb
input:
1000 [821, 520, 12, 101, 154, 410, 1, 711, 444, 301, 538, 140, 435, 495, 679, 279, 336, 643, 389, 75, 766, 458, 472, 429, 788, 996, 596, 872, 317, 205, 131, 763, 466, 61, 439, 748, 794, 604, 570, 184, 928, 323, 231, 624, 272, 87, 630, 988, 137, 61, 759, 465, 805, 399, 986, 474, 518, 765, 409, 229, 5...
output:
51241247 5 18176
result:
ok
Test #115:
score: 40
Accepted
time: 103ms
memory: 3780kb
input:
1000 [964, 184, 372, 443, 182, 62, 288, 977, 171, 244, 718, 195, 646, 304, 918, 443, 122, 690, 320, 632, 14, 799, 443, 363, 993, 970, 52, 372, 331, 940, 639, 922, 519, 448, 670, 979, 500, 79, 248, 585, 72, 380, 893, 708, 846, 443, 524, 443, 494, 970, 224, 152, 420, 87, 376, 799, 165, 443, 818, 68, 9...
output:
51241247 5 18204
result:
ok
Test #116:
score: 40
Accepted
time: 90ms
memory: 3784kb
input:
1000 [175, 161, 635, 171, 367, 639, 107, 419, 20, 848, 10, 257, 639, 929, 821, 570, 396, 166, 639, 510, 639, 538, 257, 639, 747, 639, 639, 60, 639, 665, 639, 655, 639, 639, 639, 985, 639, 657, 621, 639, 544, 639, 140, 639, 639, 19, 639, 739, 639, 605, 287, 639, 124, 361, 192, 285, 639, 639, 639, 884...
output:
51241247 5 18300
result:
ok
Test #117:
score: 40
Accepted
time: 97ms
memory: 3788kb
input:
1000 [109, 799, 218, 839, 1, 393, 967, 433, 257, 876, 651, 128, 355, 25, 124, 970, 507, 701, 672, 653, 427, 526, 956, 349, 868, 502, 88, 202, 496, 673, 345, 102, 159, 608, 403, 945, 355, 31, 787, 67, 960, 106, 603, 284, 135, 45, 821, 15, 840, 100, 772, 944, 745, 672, 449, 671, 562, 932, 726, 745, 85...
output:
51241247 5 18202
result:
ok
Test #118:
score: 40
Accepted
time: 105ms
memory: 3772kb
input:
1000 [635, 302, 275, 496, 287, 469, 705, 400, 316, 884, 599, 37, 225, 502, 562, 46, 317, 220, 231, 580, 10, 6, 868, 879, 162, 601, 336, 646, 188, 157, 994, 568, 269, 469, 884, 980, 515, 150, 257, 23, 224, 925, 342, 497, 212, 24, 666, 635, 553, 482, 724, 485, 196, 839, 96, 735, 85, 461, 160, 133, 635...
output:
51241247 5 18192
result:
ok
Test #119:
score: 40
Accepted
time: 92ms
memory: 3884kb
input:
1000 [346, 346, 156, 346, 346, 64, 4, 346, 346, 673, 735, 492, 308, 385, 765, 346, 346, 346, 594, 139, 600, 626, 156, 729, 346, 348, 442, 511, 662, 892, 601, 346, 939, 685, 40, 722, 346, 346, 202, 511, 502, 738, 346, 942, 827, 593, 69, 346, 346, 346, 346, 346, 8, 576, 346, 486, 268, 511, 867, 81, 1,...
output:
51241247 5 17996
result:
ok
Test #120:
score: 40
Accepted
time: 93ms
memory: 3796kb
input:
1000 [494, 34, 973, 685, 484, 622, 211, 227, 969, 17, 217, 704, 6, 530, 63, 1, 623, 676, 546, 478, 343, 63, 240, 439, 969, 800, 167, 633, 931, 773, 543, 157, 763, 321, 551, 307, 11, 291, 444, 288, 723, 299, 73, 123, 296, 369, 652, 732, 407, 335, 658, 218, 728, 305, 10, 439, 38, 451, 614, 216, 880, 8...
output:
51241247 5 18186
result:
ok
Test #121:
score: 40
Accepted
time: 113ms
memory: 3888kb
input:
1000 [332, 268, 421, 389, 764, 856, 488, 365, 498, 826, 688, 882, 580, 189, 78, 804, 93, 329, 553, 969, 675, 154, 744, 419, 796, 269, 130, 263, 683, 5, 285, 347, 844, 378, 220, 949, 972, 579, 673, 570, 946, 892, 972, 492, 73, 255, 559, 789, 212, 405, 798, 318, 47, 401, 403, 270, 250, 520, 137, 575, ...
output:
51241247 5 18136
result:
ok
Test #122:
score: 40
Accepted
time: 96ms
memory: 3776kb
input:
1000 [492, 929, 576, 897, 795, 416, 332, 785, 473, 650, 83, 231, 930, 1, 469, 31, 231, 141, 23, 217, 249, 397, 717, 751, 953, 473, 31, 55, 47, 727, 366, 830, 451, 291, 681, 586, 193, 808, 517, 933, 645, 628, 85, 384, 889, 377, 94, 249, 63, 10, 249, 907, 975, 161, 94, 351, 216, 820, 114, 477, 874, 33...
output:
51241247 5 18180
result:
ok
Test #123:
score: 40
Accepted
time: 96ms
memory: 3784kb
input:
1000 [795, 66, 995, 958, 421, 330, 997, 777, 647, 768, 855, 882, 552, 939, 452, 78, 78, 218, 760, 437, 335, 159, 670, 884, 939, 805, 197, 98, 373, 52, 643, 293, 983, 452, 15, 820, 97, 355, 452, 375, 930, 437, 689, 375, 522, 450, 503, 452, 13, 7, 677, 41, 32, 281, 490, 996, 452, 452, 419, 946, 961, 3...
output:
51241247 5 18174
result:
ok
Test #124:
score: 40
Accepted
time: 98ms
memory: 3764kb
input:
1000 [576, 135, 394, 159, 342, 453, 593, 412, 63, 235, 981, 939, 812, 22, 306, 642, 443, 938, 681, 887, 615, 707, 729, 829, 943, 799, 326, 99, 876, 311, 402, 491, 442, 154, 20, 90, 658, 208, 984, 969, 413, 909, 112, 150, 836, 212, 541, 187, 49, 152, 514, 391, 326, 35, 12, 899, 874, 94, 818, 535, 794...
output:
51241247 5 18128
result:
ok
Test #125:
score: 40
Accepted
time: 96ms
memory: 3784kb
input:
1000 [97, 684, 279, 50, 618, 953, 713, 15, 986, 199, 471, 427, 844, 525, 453, 403, 773, 711, 310, 744, 715, 496, 856, 878, 188, 640, 644, 520, 38, 658, 856, 282, 4, 667, 856, 519, 413, 103, 114, 25, 862, 761, 613, 411, 634, 372, 294, 792, 844, 21, 587, 308, 696, 408, 655, 119, 315, 538, 134, 279, 35...
output:
51241247 5 18170
result:
ok
Test #126:
score: 40
Accepted
time: 97ms
memory: 3800kb
input:
1000 [330, 192, 888, 497, 482, 493, 851, 148, 141, 726, 833, 758, 849, 392, 86, 82, 35, 1, 465, 4, 336, 136, 284, 632, 495, 133, 597, 597, 3, 254, 42, 353, 231, 631, 929, 787, 929, 253, 394, 855, 586, 681, 395, 29, 742, 862, 259, 227, 444, 792, 576, 131, 796, 394, 903, 708, 747, 403, 800, 497, 480, ...
output:
51241247 5 18140
result:
ok
Test #127:
score: 40
Accepted
time: 105ms
memory: 3848kb
input:
1000 [831, 718, 467, 8, 822, 877, 173, 436, 637, 960, 754, 191, 278, 1, 248, 491, 749, 555, 693, 202, 613, 353, 559, 799, 72, 897, 370, 994, 532, 969, 796, 951, 202, 706, 656, 624, 353, 975, 6, 273, 633, 13, 182, 473, 956, 879, 770, 728, 281, 718, 79, 496, 156, 245, 859, 101, 577, 619, 59, 271, 966,...
output:
51241247 5 18184
result:
ok
Test #128:
score: 40
Accepted
time: 100ms
memory: 3780kb
input:
1000 [1, 837, 647, 837, 799, 526, 185, 109, 794, 837, 149, 167, 558, 811, 657, 35, 600, 992, 49, 670, 589, 515, 27, 567, 537, 934, 516, 57, 677, 769, 507, 777, 190, 847, 925, 641, 472, 838, 249, 1, 283, 196, 66, 964, 703, 392, 835, 674, 459, 352, 843, 278, 132, 198, 533, 923, 660, 668, 154, 358, 741...
output:
51241247 5 18140
result:
ok
Test #129:
score: 40
Accepted
time: 102ms
memory: 3852kb
input:
1000 [228, 105, 810, 373, 541, 728, 404, 159, 243, 556, 814, 350, 155, 259, 606, 881, 618, 657, 406, 378, 718, 557, 345, 786, 810, 243, 850, 52, 295, 215, 721, 542, 583, 95, 643, 681, 694, 367, 23, 651, 696, 713, 599, 302, 215, 988, 191, 575, 587, 270, 596, 889, 840, 882, 474, 934, 706, 558, 683, 59...
output:
51241247 5 18184
result:
ok
Test #130:
score: 40
Accepted
time: 98ms
memory: 3768kb
input:
1000 [28, 717, 441, 132, 592, 274, 503, 534, 330, 348, 297, 66, 1, 336, 156, 602, 705, 807, 85, 297, 263, 433, 839, 80, 80, 129, 910, 906, 603, 129, 272, 462, 669, 763, 37, 632, 530, 441, 85, 265, 722, 100, 734, 895, 189, 839, 547, 136, 20, 489, 42, 942, 630, 670, 325, 291, 872, 284, 968, 512, 125, ...
output:
51241247 5 18214
result:
ok
Test #131:
score: 40
Accepted
time: 205ms
memory: 3936kb
input:
1000 [445, 20, 952, 975, 644, 981, 155, 859, 691, 321, 98, 597, 326, 812, 180, 517, 847, 42, 553, 407, 257, 868, 613, 454, 566, 400, 851, 579, 574, 885, 752, 666, 150, 327, 506, 836, 100, 270, 329, 289, 802, 92, 268, 855, 254, 285, 650, 147, 206, 279, 885, 902, 288, 721, 781, 821, 547, 707, 46, 100,...
output:
51241247 5 18548
result:
ok
Test #132:
score: 40
Accepted
time: 107ms
memory: 3816kb
input:
1000 [888, 228, 364, 758, 899, 774, 1000, 857, 140, 529, 907, 766, 735, 61, 751, 107, 764, 5, 356, 144, 180, 720, 812, 800, 404, 151, 202, 243, 581, 439, 666, 533, 331, 408, 139, 215, 395, 704, 731, 541, 78, 888, 588, 105, 820, 424, 281, 86, 155, 701, 336, 905, 648, 348, 951, 316, 892, 63, 617, 801,...
output:
51241247 5 18186
result:
ok
Test #133:
score: 40
Accepted
time: 110ms
memory: 3800kb
input:
1000 [881, 866, 286, 984, 209, 492, 950, 867, 526, 252, 697, 813, 501, 137, 419, 749, 825, 201, 10, 844, 743, 817, 238, 804, 741, 700, 36, 563, 529, 705, 515, 137, 934, 498, 761, 480, 232, 705, 115, 706, 590, 821, 713, 985, 138, 993, 385, 187, 76, 851, 153, 537, 110, 53, 825, 196, 475, 295, 225, 858...
output:
51241247 5 18176
result:
ok
Test #134:
score: 40
Accepted
time: 100ms
memory: 3908kb
input:
1000 [497, 200, 33, 524, 413, 812, 531, 583, 401, 329, 436, 422, 200, 141, 588, 760, 101, 101, 467, 299, 924, 949, 819, 993, 525, 931, 485, 98, 684, 296, 417, 692, 797, 155, 445, 872, 624, 999, 80, 486, 554, 945, 396, 174, 510, 437, 620, 257, 189, 846, 74, 756, 247, 13, 189, 802, 837, 558, 677, 392,...
output:
51241247 5 18156
result:
ok
Test #135:
score: 40
Accepted
time: 99ms
memory: 3896kb
input:
1000 [92, 966, 551, 135, 762, 61, 654, 93, 966, 223, 339, 244, 961, 624, 106, 647, 344, 646, 300, 775, 456, 604, 550, 217, 218, 222, 964, 684, 242, 877, 641, 861, 67, 461, 150, 507, 777, 304, 839, 229, 620, 245, 169, 601, 122, 649, 151, 438, 847, 542, 325, 354, 309, 771, 539, 838, 965, 753, 381, 433...
output:
51241247 5 18208
result:
ok
Test #136:
score: 40
Accepted
time: 105ms
memory: 3896kb
input:
1000 [99, 55, 598, 165, 326, 457, 212, 444, 519, 424, 948, 336, 903, 903, 560, 561, 891, 425, 828, 935, 570, 558, 277, 270, 967, 885, 138, 718, 97, 442, 82, 503, 331, 459, 947, 929, 531, 788, 333, 443, 961, 922, 806, 5, 234, 707, 121, 523, 3, 245, 403, 709, 578, 763, 744, 180, 113, 285, 943, 510, 60...
output:
51241247 5 18164
result:
ok
Test #137:
score: 40
Accepted
time: 101ms
memory: 3816kb
input:
1000 [458, 450, 918, 424, 968, 772, 241, 764, 645, 640, 872, 585, 738, 798, 98, 192, 587, 305, 951, 426, 996, 308, 653, 637, 408, 462, 792, 283, 794, 560, 819, 417, 644, 32, 678, 584, 870, 258, 834, 849, 495, 874, 978, 644, 813, 615, 941, 796, 924, 598, 556, 396, 679, 663, 114, 680, 678, 486, 279, 5...
output:
51241247 5 18206
result:
ok
Test #138:
score: 40
Accepted
time: 100ms
memory: 3844kb
input:
1000 [918, 892, 890, 790, 530, 817, 99, 929, 730, 985, 1000, 204, 115, 772, 621, 161, 520, 507, 168, 574, 82, 612, 255, 922, 337, 921, 512, 119, 512, 697, 631, 681, 711, 558, 740, 320, 369, 953, 918, 989, 680, 898, 138, 46, 314, 598, 642, 848, 9, 117, 28, 163, 384, 41, 111, 869, 208, 854, 309, 740, ...
output:
51241247 5 18182
result:
ok
Test #139:
score: 40
Accepted
time: 113ms
memory: 3856kb
input:
1000 [689, 735, 159, 158, 911, 961, 477, 769, 294, 897, 565, 567, 69, 824, 439, 653, 779, 574, 315, 849, 391, 319, 820, 217, 884, 582, 117, 245, 99, 438, 697, 263, 848, 881, 209, 748, 601, 241, 552, 928, 801, 376, 891, 175, 105, 125, 662, 841, 557, 539, 245, 82, 292, 945, 465, 481, 581, 660, 618, 96...
output:
51241247 5 18184
result:
ok
Test #140:
score: 40
Accepted
time: 103ms
memory: 3876kb
input:
1000 [980, 490, 104, 493, 191, 627, 408, 610, 66, 620, 63, 884, 5, 347, 691, 873, 410, 364, 648, 773, 167, 777, 682, 878, 613, 360, 593, 501, 334, 255, 820, 604, 141, 209, 690, 743, 742, 908, 17, 680, 470, 756, 690, 257, 143, 283, 70, 992, 9, 641, 613, 885, 853, 626, 670, 91, 181, 240, 282, 108, 964...
output:
51241247 5 18170
result:
ok
Test #141:
score: 40
Accepted
time: 110ms
memory: 3860kb
input:
1000 [831, 191, 896, 346, 552, 74, 380, 600, 541, 994, 285, 379, 889, 415, 755, 428, 413, 32, 809, 913, 396, 721, 727, 62, 15, 103, 865, 611, 212, 135, 895, 637, 76, 109, 38, 89, 531, 565, 655, 547, 951, 857, 176, 53, 320, 726, 641, 694, 821, 951, 12, 733, 949, 14, 80, 241, 241, 253, 180, 298, 232, ...
output:
51241247 5 18182
result:
ok
Test #142:
score: 40
Accepted
time: 100ms
memory: 3788kb
input:
1000 [203, 276, 920, 100, 254, 122, 141, 919, 11, 621, 778, 351, 235, 176, 203, 793, 869, 762, 181, 181, 923, 946, 468, 8, 137, 72, 642, 856, 881, 857, 195, 914, 943, 599, 587, 349, 982, 255, 467, 466, 729, 506, 511, 541, 259, 383, 784, 449, 476, 233, 205, 600, 450, 698, 927, 279, 186, 524, 235, 667...
output:
51241247 5 18138
result:
ok
Test #143:
score: 40
Accepted
time: 96ms
memory: 3792kb
input:
1000 [658, 791, 305, 991, 617, 93, 542, 593, 115, 833, 254, 891, 734, 558, 261, 247, 269, 460, 518, 367, 993, 946, 594, 706, 960, 298, 316, 660, 297, 921, 367, 102, 75, 974, 724, 439, 217, 230, 339, 994, 707, 337, 800, 356, 61, 818, 707, 655, 542, 137, 620, 8, 849, 254, 8, 580, 887, 942, 818, 36, 31...
output:
51241247 5 18188
result:
ok
Test #144:
score: 40
Accepted
time: 111ms
memory: 3808kb
input:
1000 [470, 262, 53, 931, 162, 340, 913, 684, 466, 603, 857, 267, 937, 502, 522, 158, 293, 123, 559, 88, 282, 121, 814, 313, 284, 259, 859, 661, 627, 612, 956, 382, 530, 826, 842, 759, 314, 215, 202, 562, 960, 195, 284, 407, 68, 269, 588, 924, 797, 278, 815, 909, 408, 338, 156, 494, 944, 72, 736, 222...
output:
51241247 5 18178
result:
ok
Test #145:
score: 40
Accepted
time: 106ms
memory: 3836kb
input:
1000 [298, 342, 43, 491, 65, 419, 976, 328, 56, 133, 884, 56, 34, 938, 55, 857, 874, 275, 891, 98, 169, 254, 657, 467, 320, 736, 245, 196, 155, 209, 822, 402, 379, 388, 504, 650, 491, 416, 195, 820, 923, 120, 601, 877, 633, 573, 523, 709, 250, 67, 468, 255, 217, 954, 675, 725, 313, 414, 135, 850, 55...
output:
51241247 5 18168
result:
ok
Test #146:
score: 40
Accepted
time: 105ms
memory: 3792kb
input:
1000 [220, 407, 790, 305, 226, 974, 988, 659, 796, 627, 983, 772, 928, 459, 707, 470, 463, 597, 773, 77, 998, 975, 306, 273, 565, 275, 510, 999, 300, 44, 371, 575, 246, 134, 53, 573, 339, 833, 50, 1, 143, 475, 974, 349, 143, 990, 655, 502, 300, 251, 102, 98, 764, 520, 877, 39, 172, 209, 630, 233, 97...
output:
51241247 5 18124
result:
ok
Test #147:
score: 40
Accepted
time: 99ms
memory: 3860kb
input:
1000 [388, 112, 332, 843, 14, 345, 961, 917, 796, 629, 678, 474, 582, 578, 878, 471, 936, 1, 583, 831, 655, 825, 679, 371, 834, 493, 264, 514, 686, 403, 277, 828, 210, 269, 963, 825, 319, 406, 255, 927, 406, 77, 910, 533, 605, 819, 913, 249, 626, 547, 125, 432, 357, 421, 973, 266, 711, 320, 492, 407...
output:
51241247 5 18178
result:
ok
Test #148:
score: 40
Accepted
time: 101ms
memory: 3872kb
input:
1000 [386, 879, 673, 727, 884, 908, 7, 634, 306, 786, 914, 405, 365, 978, 381, 253, 777, 349, 603, 188, 508, 119, 256, 180, 660, 726, 993, 749, 457, 981, 305, 906, 138, 418, 305, 986, 276, 324, 362, 81, 572, 171, 362, 675, 365, 100, 258, 616, 607, 637, 253, 732, 463, 484, 541, 127, 770, 438, 8, 683,...
output:
51241247 5 18140
result:
ok
Test #149:
score: 40
Accepted
time: 99ms
memory: 3812kb
input:
1000 [850, 389, 554, 29, 276, 708, 886, 498, 892, 841, 85, 703, 703, 581, 118, 484, 889, 632, 771, 988, 650, 630, 660, 773, 632, 63, 954, 442, 185, 485, 680, 184, 855, 532, 1, 624, 911, 954, 302, 43, 63, 1, 935, 666, 724, 614, 167, 770, 913, 884, 613, 919, 466, 822, 980, 198, 650, 407, 976, 434, 416...
output:
51241247 5 18148
result:
ok
Test #150:
score: 40
Accepted
time: 100ms
memory: 3780kb
input:
1000 [41, 30, 624, 388, 928, 732, 76, 747, 395, 901, 240, 637, 321, 153, 301, 120, 394, 125, 660, 8, 399, 471, 262, 698, 124, 485, 877, 821, 808, 371, 456, 516, 572, 584, 438, 695, 854, 463, 854, 386, 88, 813, 155, 580, 972, 161, 16, 151, 664, 252, 280, 433, 938, 262, 597, 513, 821, 419, 845, 928, 8...
output:
51241247 5 18194
result:
ok