QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#553129 | #172. Optimal Tournament | 5un_xiaomivita_mbox | AC ✓ | 179ms | 433616kb | C++14 | 819b | 2024-09-08 09:23:08 | 2024-09-08 09:23:09 |
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: 223632kb
input:
4 3 1 3 4 7
output:
6
result:
ok single line: '6'
Test #2:
score: 0
Accepted
time: 0ms
memory: 226340kb
input:
5 3 1 3 4 7 9
output:
10
result:
ok single line: '10'
Test #3:
score: 0
Accepted
time: 11ms
memory: 228724kb
input:
18 7 67 64 52 18 39 92 84 66 19 64 1 66 35 34 45 2 79 34
output:
114
result:
ok single line: '114'
Test #4:
score: 0
Accepted
time: 12ms
memory: 226824kb
input:
9 6 367 964 752 918 139 592 384 166 319
output:
888
result:
ok single line: '888'
Test #5:
score: 0
Accepted
time: 7ms
memory: 226680kb
input:
10 4 166 835 734 145 702 279 334 304 1000 696
output:
1285
result:
ok single line: '1285'
Test #6:
score: 0
Accepted
time: 8ms
memory: 225480kb
input:
10 4 110 261 155 560 163 588 766 120 574 886
output:
1230
result:
ok single line: '1230'
Test #7:
score: 0
Accepted
time: 7ms
memory: 225316kb
input:
10 4 490 764 478 723 627 138 383 681 666 641
output:
748
result:
ok single line: '748'
Test #8:
score: 0
Accepted
time: 7ms
memory: 226328kb
input:
9 6 697 281 465 951 451 369 388 335 332
output:
703
result:
ok single line: '703'
Test #9:
score: 0
Accepted
time: 8ms
memory: 243524kb
input:
96 23 457 244 700 209 664 829 54 27 949 977 221 221 652 920 742 664 540 416 183 456 111 855 348 326 521 731 470 863 139 129 404 475 404 377 534 970 484 303 283 265 662 759 906 849 302 68 470 34 340 710 912 981 461 317 764 155 963 642 870 802 643 636 718 775 197 694 407 814 958 567 921 918 149 918 48...
output:
1423
result:
ok single line: '1423'
Test #10:
score: 0
Accepted
time: 7ms
memory: 247320kb
input:
96 49 589 17 240 432 71 597 435 420 788 635 827 116 179 17 912 881 443 61 959 552 210 455 667 332 183 674 86 118 623 488 187 649 103 686 243 466 868 266 604 473 334 775 909 789 793 324 407 980 92 107 541 557 441 177 73 773 298 111 975 307 517 499 457 206 448 329 496 551 622 686 523 122 884 748 440 6...
output:
1093
result:
ok single line: '1093'
Test #11:
score: 0
Accepted
time: 0ms
memory: 244580kb
input:
98 10 50 720 253 448 456 212 705 593 71 556 878 922 833 300 138 213 369 197 460 72 489 546 477 886 179 803 655 448 956 210 521 953 571 164 376 53 289 320 365 252 465 763 516 152 459 406 58 573 198 602 663 539 817 114 66 238 388 3 951 249 931 409 3 856 649 773 735 32 286 390 726 420 585 23 196 336 87...
output:
1952
result:
ok single line: '1952'
Test #12:
score: 0
Accepted
time: 8ms
memory: 244620kb
input:
92 46 910 600 368 338 938 532 384 655 611 653 883 168 612 104 918 887 317 52 838 166 851 398 699 754 917 806 105 165 131 530 625 530 459 810 871 368 483 700 948 112 858 780 433 607 559 549 718 384 750 201 106 703 71 92 896 974 457 921 386 102 440 924 436 639 830 234 43 560 646 567 776 107 962 926 22...
output:
1105
result:
ok single line: '1105'
Test #13:
score: 0
Accepted
time: 7ms
memory: 243804kb
input:
95 36 372 496 366 520 158 950 751 954 202 783 618 526 939 339 967 644 473 897 359 870 149 832 766 615 381 903 445 539 940 750 880 169 406 936 827 963 421 875 977 438 117 578 419 794 653 723 449 763 466 593 750 516 117 697 858 668 215 929 756 69 453 660 59 636 440 463 70 385 865 439 396 215 240 504 3...
output:
1157
result:
ok single line: '1157'
Test #14:
score: 0
Accepted
time: 104ms
memory: 429428kb
input:
942 16 10522 99402 19415 14634 18548 99093 5574 75883 16350 28598 13586 94183 30603 89094 56627 12316 52914 22944 51086 61797 9331 63351 20045 77325 71606 34781 18396 37435 69153 68225 17691 95404 44302 16213 45762 93304 35519 55437 18041 28193 17143 95964 67047 54436 59532 42782 12567 59548 25761 9...
output:
270317
result:
ok single line: '270317'
Test #15:
score: 0
Accepted
time: 108ms
memory: 423272kb
input:
917 20 78076 27580 54369 65575 88029 36966 3468 82454 25682 67269 50600 15512 40536 6315 64164 33057 87351 36708 46490 7584 9846 49522 80424 88595 63558 55615 33213 70194 58830 95034 16600 76234 4036 10046 12036 46156 95544 84726 23551 1694 46336 67495 91339 29271 52141 68490 81948 46115 27735 65653...
output:
242317
result:
ok single line: '242317'
Test #16:
score: 0
Accepted
time: 179ms
memory: 429420kb
input:
948 38 70195 47063 52613 55887 90868 17933 83171 49550 96107 45375 88463 24602 5309 12812 43309 61275 48904 6299 1190 72599 89928 7148 53214 21960 21739 63964 35373 3535 77461 99730 26937 3889 19074 69476 40330 10724 65583 52974 43285 63335 60970 88519 91011 68709 8233 84424 81966 89363 23746 30304 ...
output:
191389
result:
ok single line: '191389'
Test #17:
score: 0
Accepted
time: 126ms
memory: 427432kb
input:
926 26 95786 26061 57661 47333 66237 42600 85778 2740 45974 66991 32206 62946 67213 52814 50689 15881 59331 78518 63977 32570 56813 14628 64104 29630 26226 90213 99364 23908 58932 43800 77741 92289 7016 95021 74624 23835 70132 16929 6541 69476 11306 54012 57899 43331 53632 92466 39952 93535 57321 53...
output:
216476
result:
ok single line: '216476'
Test #18:
score: 0
Accepted
time: 80ms
memory: 419040kb
input:
903 12 49438 86170 12450 39539 54141 72966 84734 59155 71896 97577 14474 26704 16026 57020 30074 37851 17028 93135 8588 80894 52217 16944 62031 37080 56348 12001 38261 33604 20903 67520 81875 10304 75014 11358 5511 23750 35922 32616 95537 9770 46862 76471 51020 69933 65190 37606 60818 25821 40928 53...
output:
329509
result:
ok single line: '329509'
Test #19:
score: 0
Accepted
time: 168ms
memory: 423188kb
input:
919 42 26711 55369 51885 70595 36757 83469 24197 76013 3262 53482 43546 3676 33262 64227 36954 72176 19275 12428 87830 73165 97929 49110 7373 5889 6323 45100 44853 24024 95140 39594 61757 17293 26883 97818 42628 63757 1288 1695 97105 39993 23568 51162 26909 34441 56141 23495 26301 60971 82253 38090 ...
output:
185700
result:
ok single line: '185700'
Test #20:
score: 0
Accepted
time: 137ms
memory: 419220kb
input:
900 33 22380 88626 40012 48416 17373 61570 99218 46920 47884 53738 45884 65187 4398 7026 28724 82792 63277 43574 27365 8470 86864 84488 61738 69798 96750 72452 7921 67730 22724 53445 28338 26394 75707 1265 11309 16305 29467 40691 18128 735 53070 57008 87875 9403 92705 84837 46559 35938 92609 91650 5...
output:
196284
result:
ok single line: '196284'
Test #21:
score: 0
Accepted
time: 131ms
memory: 423284kb
input:
914 27 22183 80722 57423 98391 80393 5406 64092 63734 9747 43104 97739 2747 21880 6457 64480 94026 77395 59355 13518 83077 11730 78756 9254 83717 85347 84434 4082 89311 72002 55676 32978 83309 79528 44350 46832 78405 74559 88102 13806 20347 96080 2226 16974 85999 83531 193 15956 31167 81228 50832 15...
output:
213887
result:
ok single line: '213887'
Test #22:
score: 0
Accepted
time: 135ms
memory: 429472kb
input:
946 42 99994 99990 99995 99994 99999 99992 99995 99995 99991 99998 99993 99996 99999 99994 99997 99995 99999 99990 99991 99994 99992 99992 99993 99999 99993 100000 100000 99991 99999 99998 100000 99992 99991 99990 99998 99990 99992 99990 99999 99990 99993 99993 99995 99999 100000 99997 99993 99995 9...
output:
10
result:
ok single line: '10'
Test #23:
score: 0
Accepted
time: 104ms
memory: 427384kb
input:
929 26 99998 99991 99991 99993 100000 99997 99993 99993 99997 99995 99990 99996 99999 99990 99994 99992 99999 99990 99991 99997 100000 99990 99998 99991 99992 100000 99997 99990 100000 99994 99997 100000 99992 99996 99995 99996 99993 99998 99999 99991 100000 99997 99996 99992 99993 99998 99994 10000...
output:
10
result:
ok single line: '10'
Test #24:
score: 0
Accepted
time: 143ms
memory: 421180kb
input:
914 50 99996 99992 99996 99998 99994 100000 99994 99991 99998 99999 99996 99997 99999 99999 99995 99997 99995 99997 99999 99997 100000 99994 99991 99999 100000 99991 99993 99999 99999 99993 100000 100000 99994 99993 99994 99998 99997 99990 99991 99999 99997 99992 99994 99997 99993 99994 99991 99995 ...
output:
10
result:
ok single line: '10'
Test #25:
score: 0
Accepted
time: 100ms
memory: 423284kb
input:
915 25 99996 99990 99999 99994 99993 99999 99991 99997 100000 99997 99994 99999 99991 99990 99992 99992 99990 99999 99994 99994 99990 99995 99990 99999 99995 99992 99995 99992 99997 100000 99998 99993 99995 99996 99991 99997 99990 100000 99990 99995 99990 99993 100000 99992 99995 99996 99997 99996 9...
output:
10
result:
ok single line: '10'
Test #26:
score: 0
Accepted
time: 141ms
memory: 433604kb
input:
956 41 99992 100000 99993 99998 99998 99997 99991 99997 99994 99999 99998 99992 99996 99990 99992 99993 99996 99998 99994 99997 99995 99991 99998 99998 99999 99992 99999 99992 100000 100000 99998 99998 99990 100000 99994 99990 99994 99997 99994 99997 99992 99998 100000 99990 99996 99990 99997 99994 ...
output:
10
result:
ok single line: '10'
Test #27:
score: 0
Accepted
time: 68ms
memory: 431428kb
input:
952 10 99999 99995 99999 99990 99998 99997 99992 99994 99996 99992 99997 99991 99992 99999 99997 100000 99995 100000 99991 100000 99996 99991 99999 100000 99998 99995 99999 99991 100000 99996 99998 100000 100000 99992 99992 99995 99997 99998 99993 99992 99996 100000 99998 99991 99994 99993 99998 999...
output:
28
result:
ok single line: '28'
Test #28:
score: 0
Accepted
time: 76ms
memory: 433616kb
input:
968 10 99996 99992 99993 99993 99993 99995 99991 99992 99993 100000 100000 99996 99994 99999 99991 99990 99999 100000 100000 99993 99996 99993 99991 99996 99992 99995 99993 99997 99996 99995 99993 99995 99997 99995 99999 99993 99990 99990 99993 99998 99997 99991 99990 99990 99995 99995 99997 99998 9...
output:
30
result:
ok single line: '30'
Test #29:
score: 0
Accepted
time: 71ms
memory: 429408kb
input:
941 10 99998 99997 99994 99995 99999 99998 99990 99998 99991 99991 100000 99991 99995 99999 99994 99997 100000 100000 99993 99992 99996 99994 100000 99999 99992 99998 99999 99990 99999 99998 99998 99995 99990 99993 99991 99990 99990 99999 99995 99991 99999 99996 99997 99996 99999 99998 99996 99998 1...
output:
29
result:
ok single line: '29'
Test #30:
score: 0
Accepted
time: 84ms
memory: 433544kb
input:
957 10 99998 99992 100000 99994 99992 99991 99994 99998 99997 100000 99998 99997 99990 99995 99996 99997 99994 99991 99996 99990 99997 99990 99992 99991 99992 99990 99995 99998 99998 99991 99996 99999 99990 99994 99997 100000 99992 99996 99999 99999 99991 99990 99990 99994 99997 100000 99996 100000 ...
output:
29
result:
ok single line: '29'
Test #31:
score: 0
Accepted
time: 74ms
memory: 425212kb
input:
933 10 99993 99992 99998 99992 99993 99996 100000 100000 99990 99990 99997 99996 100000 99996 99998 99993 99994 99993 99992 99997 99998 99997 99995 99990 99993 99993 99995 99994 99998 99995 99996 99998 99998 100000 99994 99996 100000 99996 99999 99990 99990 99991 99993 99997 99993 99998 99995 99996 ...
output:
27
result:
ok single line: '27'
Test #32:
score: 0
Accepted
time: 132ms
memory: 390372kb
input:
760 49 79402 79395 79403 79397 79403 79398 79396 79395 79399 79400 79393 79399 79402 79403 79396 79393 79400 79403 79401 79399 79395 79397 79402 79399 79399 79402 79394 79395 79403 79401 79396 79398 79396 79403 79399 79401 79397 79400 79399 79393 79396 79394 79394 79399 79398 79402 79396 79402 79403...
output:
95395
result:
ok single line: '95395'
Test #33:
score: 0
Accepted
time: 27ms
memory: 338704kb
input:
528 13 45438 45443 45438 45442 45438 45436 45437 45442 45444 45434 45440 45442 45438 45441 45438 45435 45436 45439 45439 45441 45441 45442 45436 45435 45444 45442 45438 45436 45442 45440 45437 45442 45439 45442 45442 45440 45434 45444 45441 45443 45437 45442 45435 45442 45443 45444 45436 45444 45442...
output:
85788
result:
ok single line: '85788'
Test #34:
score: 0
Accepted
time: 70ms
memory: 400556kb
input:
813 15 51948 77388 77393 77386 77391 77391 77392 77395 77387 77390 77394 77391 77393 77389 77393 77390 77395 77389 77392 77387 77389 77395 77394 77396 77396 77386 77389 77393 77386 77394 77387 77396 77393 77393 77389 77394 77396 77392 77395 77393 77387 77389 77391 77388 77386 77395 77396 77395 77386...
output:
124346
result:
ok single line: '124346'
Test #35:
score: 0
Accepted
time: 49ms
memory: 336920kb
input:
523 42 35862 35868 35863 35872 35869 35866 35867 35868 35868 35871 35866 35871 35872 35868 35862 35864 35865 35872 35863 35872 35866 35871 35870 35871 35868 35864 35871 35867 35863 35867 35869 35867 35870 35866 35864 35868 35863 35862 35868 35866 35872 35871 35867 35865 35871 35867 35862 35864 35866...
output:
89138
result:
ok single line: '89138'
Test #36:
score: 0
Accepted
time: 45ms
memory: 357788kb
input:
609 15 65983 65983 50217 50221 50220 50227 50224 50223 50219 50222 50217 50217 50227 50225 50218 50221 50223 50224 50227 50219 50227 50218 50222 50227 50225 50218 50219 50217 50217 50217 50225 50219 50222 50225 50219 50222 50222 50218 50227 50225 50217 50219 50217 50223 50226 50217 50226 50226 50220...
output:
130567
result:
ok single line: '130567'