QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#41790 | #1782. Knot Knowledge | HuangHanSheng | AC ✓ | 2ms | 3716kb | C++ | 360b | 2022-08-01 13:22:19 | 2022-08-01 13:22:23 |
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: 2ms
memory: 3556kb
input:
50 47 32 42 27 20 37 49 45 22 16 17 50 10 19 15 44 2 35 11 24 9 36 26 29 5 31 14 8 33 4 21 28 41 40 25 46 48 12 23 1 7 34 43 39 6 3 30 38 13 18 19 22 1 40 50 8 29 9 12 49 13 35 33 10 42 11 45 30 25 15 47 5 31 46 18 21 6 16 3 28 20 32 4 23 7 43 2 41 17 48 34 44 27 26 14 24 38 37 36
output:
39
result:
ok single line: '39'
Test #2:
score: 0
Accepted
time: 2ms
memory: 3512kb
input:
50 15 27 36 24 41 16 44 5 2 49 48 12 13 26 8 30 9 6 29 19 43 17 23 39 38 14 22 28 32 25 47 3 50 18 46 1 11 20 10 45 34 21 33 35 40 7 4 42 31 37 21 6 27 11 31 36 23 5 24 8 28 26 32 13 18 30 48 39 33 2 37 29 45 9 46 47 50 43 7 40 19 10 15 1 12 14 4 42 22 49 3 25 17 34 41 35 20 16 44
output:
38
result:
ok single line: '38'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
50 21 6 23 43 35 27 48 26 17 47 40 15 18 16 36 25 19 7 44 37 4 14 12 33 5 32 38 10 28 8 50 1 45 31 39 9 49 41 30 20 42 3 11 29 34 46 13 22 24 2 23 6 8 43 28 47 18 2 49 4 14 7 16 1 19 27 11 34 13 37 21 46 9 29 45 3 40 15 48 17 30 20 36 41 39 35 33 24 25 26 31 50 22 5 44 38 10 12 42
output:
32
result:
ok single line: '32'
Test #4:
score: 0
Accepted
time: 2ms
memory: 3448kb
input:
50 33 32 31 26 16 27 29 45 3 35 24 12 40 18 10 13 25 1 19 41 47 50 30 38 2 42 8 34 5 7 11 22 28 6 20 36 44 37 43 39 17 23 21 14 9 48 46 15 49 4 2 43 8 14 9 33 40 23 7 17 19 10 30 38 29 37 4 32 45 12 15 42 16 34 27 48 26 21 44 46 22 18 36 41 11 28 49 24 39 5 35 31 50 3 6 47 20 25 13
output:
1
result:
ok single line: '1'
Test #5:
score: 0
Accepted
time: 2ms
memory: 3556kb
input:
50 44 41 38 15 22 16 35 42 3 14 2 27 34 21 48 31 28 7 24 8 32 49 46 9 40 30 13 33 39 37 25 43 12 26 4 45 36 29 23 18 47 17 1 11 50 19 20 6 10 5 1 26 43 14 7 2 30 39 41 8 40 24 42 17 13 33 4 46 48 9 5 3 25 11 19 45 47 44 27 37 23 16 49 18 35 31 28 20 34 10 36 32 38 29 50 21 22 6 15
output:
12
result:
ok single line: '12'
Test #6:
score: 0
Accepted
time: 2ms
memory: 3596kb
input:
50 18 33 23 22 40 4 31 39 25 37 16 36 24 49 32 46 29 5 6 48 14 28 27 42 12 26 50 17 30 35 34 47 13 7 10 15 9 44 41 43 38 3 21 2 20 8 11 19 45 1 37 50 21 45 40 25 23 47 7 28 10 11 48 8 26 22 17 36 19 6 12 31 5 30 39 15 3 1 14 32 35 4 20 2 34 29 16 41 46 44 9 42 27 24 13 43 38 49 18
output:
33
result:
ok single line: '33'
Test #7:
score: 0
Accepted
time: 2ms
memory: 3584kb
input:
50 22 39 17 27 6 4 10 44 32 1 29 33 18 40 3 16 30 38 41 2 11 26 36 15 35 14 24 42 45 28 48 31 34 46 8 9 20 7 43 19 23 12 5 37 50 21 25 47 49 13 34 16 38 46 3 26 48 9 36 4 25 21 2 28 33 18 30 24 39 31 47 29 7 19 32 43 41 23 49 40 50 1 14 20 12 8 35 11 44 27 22 13 6 37 45 42 10 15 17
output:
5
result:
ok single line: '5'
Test #8:
score: 0
Accepted
time: 2ms
memory: 3588kb
input:
50 3 35 2 36 18 44 20 1 12 8 24 16 10 34 17 23 48 38 22 19 11 32 14 43 15 6 4 41 42 27 45 40 29 47 28 9 30 13 50 37 21 26 49 39 5 7 31 25 46 33 1 22 34 28 37 35 3 24 38 21 29 48 46 27 36 15 18 7 44 10 32 8 49 4 39 16 47 41 25 14 11 23 31 30 45 40 26 2 17 13 33 43 9 12 5 42 19 20 50
output:
6
result:
ok single line: '6'
Test #9:
score: 0
Accepted
time: 2ms
memory: 3644kb
input:
50 50 40 17 18 23 22 13 5 37 49 33 8 36 44 39 48 3 30 20 12 42 34 4 24 7 27 28 14 16 15 21 46 26 2 9 43 35 29 10 19 6 45 47 31 1 11 41 38 25 32 7 23 45 1 5 15 39 48 38 8 21 3 40 27 24 49 46 16 47 36 18 25 29 12 30 4 2 17 14 50 19 6 31 34 41 33 37 13 20 9 22 10 43 35 28 32 11 26 42
output:
44
result:
ok single line: '44'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
50 40 9 11 32 50 43 18 38 7 19 25 41 27 16 39 2 37 5 28 24 49 3 15 34 20 23 21 13 6 14 36 17 26 10 8 44 4 12 29 1 35 22 30 48 31 33 46 47 42 45 43 22 42 7 37 32 10 1 19 17 44 48 12 31 18 2 3 23 27 38 39 16 41 14 13 35 29 15 50 4 47 30 6 11 33 36 5 40 45 46 9 24 25 21 20 8 26 49 28
output:
34
result:
ok single line: '34'
Test #11:
score: 0
Accepted
time: 2ms
memory: 3580kb
input:
50 806 369 988 362 62 276 378 313 305 742 914 942 352 888 344 698 839 243 870 27 332 186 277 982 569 727 212 74 667 636 81 487 931 49 271 69 618 637 159 384 104 427 671 207 14 692 224 409 514 993 378 618 243 636 409 942 224 69 514 569 931 637 914 362 104 993 186 384 988 276 982 207 427 344 212 839 6...
output:
277
result:
ok single line: '277'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
50 134 592 769 17 129 403 713 347 474 867 491 855 76 896 826 872 8 675 719 871 233 737 463 761 700 322 897 305 293 703 170 953 944 697 556 664 875 23 49 508 173 644 150 941 810 379 850 681 1000 59 855 826 474 871 713 170 508 867 49 556 1000 769 703 700 810 134 322 681 8 463 875 675 953 761 305 491 8...
output:
59
result:
ok single line: '59'
Test #13:
score: 0
Accepted
time: 2ms
memory: 3580kb
input:
50 402 609 987 538 592 569 668 271 400 422 887 458 974 153 54 985 896 694 893 342 109 722 285 6 935 349 965 975 464 255 74 746 475 811 307 581 955 363 718 799 805 286 37 171 223 327 51 617 542 960 935 464 349 307 893 799 223 955 74 569 542 342 668 285 54 960 255 746 896 965 974 153 475 402 109 987 7...
output:
458
result:
ok single line: '458'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3448kb
input:
50 403 129 632 841 149 977 646 548 443 618 586 766 591 345 628 771 823 608 523 209 22 159 398 605 415 876 469 118 134 740 232 275 639 130 274 418 531 119 820 526 139 557 627 854 687 757 239 998 356 329 239 766 548 526 632 586 119 139 403 345 398 134 149 876 22 608 591 418 469 274 118 740 275 646 757...
output:
823
result:
ok single line: '823'
Test #15:
score: 0
Accepted
time: 2ms
memory: 3556kb
input:
50 648 822 796 33 667 453 590 854 422 71 874 408 544 501 65 842 561 73 205 927 301 215 371 826 571 32 262 172 343 439 425 447 106 594 451 850 969 207 129 496 773 426 401 712 890 198 160 47 254 984 65 198 453 712 927 842 890 254 71 796 594 822 501 408 301 571 32 850 426 160 854 215 172 371 590 984 45...
output:
544
result:
ok single line: '544'
Test #16:
score: 0
Accepted
time: 2ms
memory: 3560kb
input:
50 266 816 515 837 377 367 940 647 902 28 907 758 88 242 633 142 458 520 349 619 548 87 133 479 759 291 462 531 164 253 127 985 773 341 605 187 244 169 471 791 395 243 702 942 478 823 896 997 369 964 88 758 759 471 907 479 816 985 896 187 377 940 367 548 902 478 605 773 942 531 997 243 349 87 242 34...
output:
702
result:
ok single line: '702'
Test #17:
score: 0
Accepted
time: 2ms
memory: 3592kb
input:
50 395 740 718 697 679 137 350 309 371 928 783 868 86 261 471 866 300 479 32 57 277 496 204 323 410 421 543 749 840 970 601 406 627 474 721 599 986 725 198 857 258 13 911 754 952 442 882 255 686 498 32 840 601 882 543 410 474 421 57 686 721 323 371 718 783 350 13 970 255 395 498 749 627 277 86 952 8...
output:
442
result:
ok single line: '442'
Test #18:
score: 0
Accepted
time: 2ms
memory: 3584kb
input:
50 294 784 593 499 50 837 97 970 1 914 342 223 674 561 641 942 752 59 157 731 505 729 136 839 353 253 403 842 370 721 156 679 575 255 693 804 208 885 644 196 796 14 777 346 670 442 859 531 239 640 59 942 136 196 14 342 50 294 223 208 729 1 253 156 914 505 842 641 804 731 442 644 640 353 670 777 970 ...
output:
839
result:
ok single line: '839'
Test #19:
score: 0
Accepted
time: 2ms
memory: 3652kb
input:
50 383 620 537 184 157 919 23 738 647 142 911 237 122 37 732 898 566 507 948 28 586 95 251 690 925 699 775 141 522 495 908 605 894 764 386 903 160 218 43 510 562 805 676 711 913 937 442 387 526 198 925 937 122 184 711 898 903 43 387 383 562 913 157 251 28 141 732 160 919 605 386 911 690 805 908 442 ...
output:
738
result:
ok single line: '738'
Test #20:
score: 0
Accepted
time: 2ms
memory: 3448kb
input:
50 375 492 137 329 554 334 266 685 622 930 886 978 429 159 925 386 1000 860 387 290 148 884 636 403 658 615 54 2 267 73 437 863 953 734 967 262 294 559 777 362 748 270 208 432 242 778 608 295 532 838 559 290 838 329 658 860 1000 270 295 492 532 266 886 437 429 73 362 386 978 2 967 432 734 615 554 40...
output:
334
result:
ok single line: '334'
Test #21:
score: 0
Accepted
time: 2ms
memory: 3580kb
input:
50 983 955 954 986 973 967 980 964 966 972 985 957 997 974 982 1000 996 969 958 976 981 987 991 961 971 984 993 960 975 990 959 951 999 968 998 963 995 970 978 992 988 965 952 953 989 994 979 956 962 977 999 995 967 993 1000 980 998 985 957 994 989 970 952 968 988 987 960 964 955 973 979 962 959 996...
output:
971
result:
ok single line: '971'
Test #22:
score: 0
Accepted
time: 2ms
memory: 3612kb
input:
50 992 995 955 972 990 999 963 957 1000 980 993 970 961 954 968 981 956 966 962 951 953 983 975 969 964 989 986 984 971 985 977 965 996 960 988 976 952 959 987 994 967 997 958 973 991 979 978 982 974 998 965 994 988 961 970 962 963 986 980 954 993 953 960 975 958 974 985 992 997 955 964 968 987 990 ...
output:
956
result:
ok single line: '956'
Test #23:
score: 0
Accepted
time: 2ms
memory: 3584kb
input:
50 995 953 957 954 967 984 980 988 999 977 972 978 962 989 985 973 951 971 1000 965 964 960 986 955 970 958 981 974 952 961 998 956 975 996 966 991 994 963 990 979 968 997 987 982 976 959 992 983 993 969 980 963 972 974 957 986 969 978 1000 994 981 996 991 998 985 993 990 975 995 964 977 992 982 956...
output:
953
result:
ok single line: '953'
Test #24:
score: 0
Accepted
time: 2ms
memory: 3556kb
input:
50 967 953 966 989 963 999 992 960 957 970 991 983 959 975 954 961 987 986 974 982 955 981 965 998 969 977 996 985 976 993 972 971 956 980 962 979 988 973 951 952 964 990 968 958 997 1000 995 978 994 984 959 970 962 981 951 992 954 990 994 960 978 996 979 995 1000 958 976 991 955 963 977 998 987 975...
output:
973
result:
ok single line: '973'
Test #25:
score: 0
Accepted
time: 2ms
memory: 3644kb
input:
50 957 953 984 969 990 967 978 954 993 999 960 970 959 961 965 982 972 974 991 977 976 964 968 952 985 973 988 962 975 963 971 998 979 980 992 986 989 951 1000 987 955 958 956 983 994 997 996 966 995 981 1000 988 967 984 974 997 969 978 964 973 996 999 971 972 965 955 953 976 989 995 987 951 968 980...
output:
952
result:
ok single line: '952'
Test #26:
score: 0
Accepted
time: 2ms
memory: 3712kb
input:
50 968 965 983 963 988 975 966 953 973 995 976 970 987 977 972 952 991 967 961 1000 955 982 974 997 957 994 989 958 962 981 969 996 960 954 990 998 985 959 984 986 999 993 979 964 971 956 980 978 992 951 980 992 963 973 978 969 966 970 991 952 975 985 979 996 994 997 958 965 953 988 955 984 956 959 ...
output:
993
result:
ok single line: '993'
Test #27:
score: 0
Accepted
time: 2ms
memory: 3592kb
input:
50 995 964 961 986 976 956 987 962 977 973 968 993 991 996 953 967 978 972 1000 955 969 957 994 989 965 992 974 952 960 984 958 999 988 990 954 971 959 997 998 970 951 982 979 985 980 983 975 963 966 981 1000 996 992 976 975 955 954 993 986 997 960 953 991 984 952 990 967 966 970 959 979 988 980 958...
output:
965
result:
ok single line: '965'
Test #28:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
50 985 994 988 997 973 989 963 962 976 977 990 986 966 991 1000 980 952 969 981 996 959 961 983 982 998 967 956 978 960 995 968 958 955 974 971 987 999 957 951 970 993 984 992 953 954 964 972 979 975 965 959 990 960 962 984 998 999 965 985 1000 970 981 994 992 979 996 954 955 991 972 967 969 973 958...
output:
964
result:
ok single line: '964'
Test #29:
score: 0
Accepted
time: 2ms
memory: 3564kb
input:
50 975 977 968 992 987 952 964 990 997 996 976 993 994 967 995 985 957 984 1000 969 981 966 951 961 970 998 988 978 989 983 974 991 973 980 960 962 954 979 956 958 959 953 971 999 955 982 972 963 986 965 961 966 988 972 955 984 958 998 953 983 997 971 956 999 976 970 954 962 977 987 975 965 982 993 ...
output:
964
result:
ok single line: '964'
Test #30:
score: 0
Accepted
time: 2ms
memory: 3712kb
input:
50 997 991 965 982 979 962 1000 975 977 995 954 964 993 958 998 980 957 959 972 967 992 974 978 973 981 989 951 970 990 961 994 966 999 952 984 985 956 963 987 983 969 971 996 988 953 960 986 968 955 976 970 953 982 979 969 989 972 951 996 968 986 993 997 976 957 963 980 960 991 964 973 961 994 990 ...
output:
995
result:
ok single line: '995'
Test #31:
score: 0
Accepted
time: 2ms
memory: 3652kb
input:
10 12 14 13 11 15 5 2 3 4 1 3 4 5 2 13 12 14 11 15
output:
1
result:
ok single line: '1'
Test #32:
score: 0
Accepted
time: 2ms
memory: 3700kb
input:
10 12 14 13 11 15 5 2 3 4 1 3 4 1 2 13 12 14 11 5
output:
15
result:
ok single line: '15'