QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#203988 | #6677. Puzzle: Sashigane | ucup-team254# | AC ✓ | 1ms | 3772kb | C++20 | 1.2kb | 2023-10-06 23:22:55 | 2023-10-06 23:22:55 |
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: 3680kb
input:
5 3 4
output:
Yes 4 4 5 -1 -1 5 3 -2 2 1 1 4 4 2 2 3 3
result:
ok Correct. (1 test case)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
1 1 1
output:
Yes 0
result:
ok Correct. (1 test case)
Test #3:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
3 2 3
output:
Yes 2 3 2 -1 1 1 1 2 2
result:
ok Correct. (1 test case)
Test #4:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
10 10 5
output:
Yes 9 5 10 5 -5 6 9 4 -4 7 8 3 -3 8 7 2 -2 9 6 1 -1 1 1 9 9 2 2 8 8 3 3 7 7 4 4 6 6
result:
ok Correct. (1 test case)
Test #5:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
10 5 7
output:
Yes 9 8 10 -3 -3 7 9 -2 -2 6 8 -1 -1 10 5 -5 5 9 6 -4 4 1 1 9 9 2 2 8 8 3 3 7 7 4 4 6 6
result:
ok Correct. (1 test case)
Test #6:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
10 9 2
output:
Yes 9 2 9 7 -7 3 8 6 -6 4 7 5 -5 5 6 4 -4 6 5 3 -3 7 4 2 -2 8 3 1 -1 10 10 -8 -8 1 1 9 9
result:
ok Correct. (1 test case)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
10 6 10
output:
Yes 9 10 6 -4 4 9 7 -3 3 8 8 -2 2 7 9 -1 1 1 1 9 9 2 2 8 8 3 3 7 7 4 4 6 6 5 5 5 5
result:
ok Correct. (1 test case)
Test #8:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
10 8 4
output:
Yes 9 4 8 4 -4 5 7 3 -3 6 6 2 -2 7 5 1 -1 10 10 -6 -6 9 9 -5 -5 1 1 9 9 2 2 8 8 3 3 7 7
result:
ok Correct. (1 test case)
Test #9:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
999 396 693
output:
Yes 998 702 999 -306 -306 701 998 -305 -305 700 997 -304 -304 699 996 -303 -303 698 995 -302 -302 697 994 -301 -301 696 993 -300 -300 695 992 -299 -299 694 991 -298 -298 693 990 -297 -297 692 989 -296 -296 691 988 -295 -295 690 987 -294 -294 689 986 -293 -293 688 985 -292 -292 687 984 -291 -291 686 ...
result:
ok Correct. (1 test case)
Test #10:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
999 963 827
output:
Yes 998 827 963 136 -136 828 962 135 -135 829 961 134 -134 830 960 133 -133 831 959 132 -132 832 958 131 -131 833 957 130 -130 834 956 129 -129 835 955 128 -128 836 954 127 -127 837 953 126 -126 838 952 125 -125 839 951 124 -124 840 950 123 -123 841 949 122 -122 842 948 121 -121 843 947 120 -120 844...
result:
ok Correct. (1 test case)
Test #11:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
999 871 185
output:
Yes 998 185 871 686 -686 186 870 685 -685 187 869 684 -684 188 868 683 -683 189 867 682 -682 190 866 681 -681 191 865 680 -680 192 864 679 -679 193 863 678 -678 194 862 677 -677 195 861 676 -676 196 860 675 -675 197 859 674 -674 198 858 673 -673 199 857 672 -672 200 856 671 -671 201 855 670 -670 202...
result:
ok Correct. (1 test case)
Test #12:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
999 787 812
output:
Yes 998 974 999 -187 -187 973 998 -186 -186 972 997 -185 -185 971 996 -184 -184 970 995 -183 -183 969 994 -182 -182 968 993 -181 -181 967 992 -180 -180 966 991 -179 -179 965 990 -178 -178 964 989 -177 -177 963 988 -176 -176 962 987 -175 -175 961 986 -174 -174 960 985 -173 -173 959 984 -172 -172 958 ...
result:
ok Correct. (1 test case)
Test #13:
score: 0
Accepted
time: 1ms
memory: 3712kb
input:
999 396 199
output:
Yes 998 199 396 197 -197 200 395 196 -196 201 394 195 -195 202 393 194 -194 203 392 193 -193 204 391 192 -192 205 390 191 -191 206 389 190 -190 207 388 189 -189 208 387 188 -188 209 386 187 -187 210 385 186 -186 211 384 185 -185 212 383 184 -184 213 382 183 -183 214 381 182 -182 215 380 181 -181 216...
result:
ok Correct. (1 test case)
Test #14:
score: 0
Accepted
time: 1ms
memory: 3768kb
input:
999 1 1
output:
Yes 998 999 999 -998 -998 998 998 -997 -997 997 997 -996 -996 996 996 -995 -995 995 995 -994 -994 994 994 -993 -993 993 993 -992 -992 992 992 -991 -991 991 991 -990 -990 990 990 -989 -989 989 989 -988 -988 988 988 -987 -987 987 987 -986 -986 986 986 -985 -985 985 985 -984 -984 984 984 -983 -983 983 ...
result:
ok Correct. (1 test case)
Test #15:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
999 163 1
output:
Yes 998 1 163 162 -162 2 162 161 -161 3 161 160 -160 4 160 159 -159 5 159 158 -158 6 158 157 -157 7 157 156 -156 8 156 155 -155 9 155 154 -154 10 154 153 -153 11 153 152 -152 12 152 151 -151 13 151 150 -150 14 150 149 -149 15 149 148 -148 16 148 147 -147 17 147 146 -146 18 146 145 -145 19 145 144 -1...
result:
ok Correct. (1 test case)
Test #16:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
999 999 1
output:
Yes 998 1 999 998 -998 2 998 997 -997 3 997 996 -996 4 996 995 -995 5 995 994 -994 6 994 993 -993 7 993 992 -992 8 992 991 -991 9 991 990 -990 10 990 989 -989 11 989 988 -988 12 988 987 -987 13 987 986 -986 14 986 985 -985 15 985 984 -984 16 984 983 -983 17 983 982 -982 18 982 981 -981 19 981 980 -9...
result:
ok Correct. (1 test case)
Test #17:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
999 1 969
output:
Yes 998 31 999 -30 -30 30 998 -29 -29 29 997 -28 -28 28 996 -27 -27 27 995 -26 -26 26 994 -25 -25 25 993 -24 -24 24 992 -23 -23 23 991 -22 -22 22 990 -21 -21 21 989 -20 -20 20 988 -19 -19 19 987 -18 -18 18 986 -17 -17 17 985 -16 -16 16 984 -15 -15 15 983 -14 -14 14 982 -13 -13 13 981 -12 -12 12 980 ...
result:
ok Correct. (1 test case)
Test #18:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
999 999 780
output:
Yes 998 780 999 219 -219 781 998 218 -218 782 997 217 -217 783 996 216 -216 784 995 215 -215 785 994 214 -214 786 993 213 -213 787 992 212 -212 788 991 211 -211 789 990 210 -210 790 989 209 -209 791 988 208 -208 792 987 207 -207 793 986 206 -206 794 985 205 -205 795 984 204 -204 796 983 203 -203 797...
result:
ok Correct. (1 test case)
Test #19:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
999 1 999
output:
Yes 998 999 1 -998 998 998 2 -997 997 997 3 -996 996 996 4 -995 995 995 5 -994 994 994 6 -993 993 993 7 -992 992 992 8 -991 991 991 9 -990 990 990 10 -989 989 989 11 -988 988 988 12 -987 987 987 13 -986 986 986 14 -985 985 985 15 -984 984 984 16 -983 983 983 17 -982 982 982 18 -981 981 981 19 -980 9...
result:
ok Correct. (1 test case)
Test #20:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
999 686 999
output:
Yes 998 999 686 -313 313 998 687 -312 312 997 688 -311 311 996 689 -310 310 995 690 -309 309 994 691 -308 308 993 692 -307 307 992 693 -306 306 991 694 -305 305 990 695 -304 304 989 696 -303 303 988 697 -302 302 987 698 -301 301 986 699 -300 300 985 700 -299 299 984 701 -298 298 983 702 -297 297 982...
result:
ok Correct. (1 test case)
Test #21:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
999 999 999
output:
Yes 998 1 1 998 998 2 2 997 997 3 3 996 996 4 4 995 995 5 5 994 994 6 6 993 993 7 7 992 992 8 8 991 991 9 9 990 990 10 10 989 989 11 11 988 988 12 12 987 987 13 13 986 986 14 14 985 985 15 15 984 984 16 16 983 983 17 17 982 982 18 18 981 981 19 19 980 980 20 20 979 979 21 21 978 978 22 22 977 977 23...
result:
ok Correct. (1 test case)
Test #22:
score: 0
Accepted
time: 1ms
memory: 3760kb
input:
1000 757 728
output:
Yes 999 728 757 29 -29 729 756 28 -28 730 755 27 -27 731 754 26 -26 732 753 25 -25 733 752 24 -24 734 751 23 -23 735 750 22 -22 736 749 21 -21 737 748 20 -20 738 747 19 -19 739 746 18 -18 740 745 17 -17 741 744 16 -16 742 743 15 -15 743 742 14 -14 744 741 13 -13 745 740 12 -12 746 739 11 -11 747 738...
result:
ok Correct. (1 test case)
Test #23:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
1000 132 993
output:
Yes 999 139 1000 -7 -7 138 999 -6 -6 137 998 -5 -5 136 997 -4 -4 135 996 -3 -3 134 995 -2 -2 133 994 -1 -1 1000 132 -868 868 999 133 -867 867 998 134 -866 866 997 135 -865 865 996 136 -864 864 995 137 -863 863 994 138 -862 862 993 139 -861 861 992 140 -860 860 991 141 -859 859 990 142 -858 858 989 1...
result:
ok Correct. (1 test case)
Test #24:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
1000 703 499
output:
Yes 999 499 703 204 -204 500 702 203 -203 501 701 202 -202 502 700 201 -201 503 699 200 -200 504 698 199 -199 505 697 198 -198 506 696 197 -197 507 695 196 -196 508 694 195 -195 509 693 194 -194 510 692 193 -193 511 691 192 -192 512 690 191 -191 513 689 190 -190 514 688 189 -189 515 687 188 -188 516...
result:
ok Correct. (1 test case)
Test #25:
score: 0
Accepted
time: 1ms
memory: 3768kb
input:
1000 910 298
output:
Yes 999 298 910 612 -612 299 909 611 -611 300 908 610 -610 301 907 609 -609 302 906 608 -608 303 905 607 -607 304 904 606 -606 305 903 605 -605 306 902 604 -604 307 901 603 -603 308 900 602 -602 309 899 601 -601 310 898 600 -600 311 897 599 -599 312 896 598 -598 313 895 597 -597 314 894 596 -596 315...
result:
ok Correct. (1 test case)
Test #26:
score: 0
Accepted
time: 1ms
memory: 3772kb
input:
1000 171 322
output:
Yes 999 849 1000 -678 -678 848 999 -677 -677 847 998 -676 -676 846 997 -675 -675 845 996 -674 -674 844 995 -673 -673 843 994 -672 -672 842 993 -671 -671 841 992 -670 -670 840 991 -669 -669 839 990 -668 -668 838 989 -667 -667 837 988 -666 -666 836 987 -665 -665 835 986 -664 -664 834 985 -663 -663 833...
result:
ok Correct. (1 test case)
Test #27:
score: 0
Accepted
time: 1ms
memory: 3764kb
input:
1000 1 1
output:
Yes 999 1000 1000 -999 -999 999 999 -998 -998 998 998 -997 -997 997 997 -996 -996 996 996 -995 -995 995 995 -994 -994 994 994 -993 -993 993 993 -992 -992 992 992 -991 -991 991 991 -990 -990 990 990 -989 -989 989 989 -988 -988 988 988 -987 -987 987 987 -986 -986 986 986 -985 -985 985 985 -984 -984 98...
result:
ok Correct. (1 test case)
Test #28:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
1000 480 1
output:
Yes 999 1 480 479 -479 2 479 478 -478 3 478 477 -477 4 477 476 -476 5 476 475 -475 6 475 474 -474 7 474 473 -473 8 473 472 -472 9 472 471 -471 10 471 470 -470 11 470 469 -469 12 469 468 -468 13 468 467 -467 14 467 466 -466 15 466 465 -465 16 465 464 -464 17 464 463 -463 18 463 462 -462 19 462 461 -4...
result:
ok Correct. (1 test case)
Test #29:
score: 0
Accepted
time: 1ms
memory: 3712kb
input:
1000 1000 1
output:
Yes 999 1 1000 999 -999 2 999 998 -998 3 998 997 -997 4 997 996 -996 5 996 995 -995 6 995 994 -994 7 994 993 -993 8 993 992 -992 9 992 991 -991 10 991 990 -990 11 990 989 -989 12 989 988 -988 13 988 987 -987 14 987 986 -986 15 986 985 -985 16 985 984 -984 17 984 983 -983 18 983 982 -982 19 982 981 -...
result:
ok Correct. (1 test case)
Test #30:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
1000 1 339
output:
Yes 999 662 1000 -661 -661 661 999 -660 -660 660 998 -659 -659 659 997 -658 -658 658 996 -657 -657 657 995 -656 -656 656 994 -655 -655 655 993 -654 -654 654 992 -653 -653 653 991 -652 -652 652 990 -651 -651 651 989 -650 -650 650 988 -649 -649 649 987 -648 -648 648 986 -647 -647 647 985 -646 -646 646...
result:
ok Correct. (1 test case)
Test #31:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
1000 1000 161
output:
Yes 999 161 1000 839 -839 162 999 838 -838 163 998 837 -837 164 997 836 -836 165 996 835 -835 166 995 834 -834 167 994 833 -833 168 993 832 -832 169 992 831 -831 170 991 830 -830 171 990 829 -829 172 989 828 -828 173 988 827 -827 174 987 826 -826 175 986 825 -825 176 985 824 -824 177 984 823 -823 17...
result:
ok Correct. (1 test case)
Test #32:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
1000 1 1000
output:
Yes 999 1000 1 -999 999 999 2 -998 998 998 3 -997 997 997 4 -996 996 996 5 -995 995 995 6 -994 994 994 7 -993 993 993 8 -992 992 992 9 -991 991 991 10 -990 990 990 11 -989 989 989 12 -988 988 988 13 -987 987 987 14 -986 986 986 15 -985 985 985 16 -984 984 984 17 -983 983 983 18 -982 982 982 19 -981 ...
result:
ok Correct. (1 test case)
Test #33:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
1000 759 1000
output:
Yes 999 1000 759 -241 241 999 760 -240 240 998 761 -239 239 997 762 -238 238 996 763 -237 237 995 764 -236 236 994 765 -235 235 993 766 -234 234 992 767 -233 233 991 768 -232 232 990 769 -231 231 989 770 -230 230 988 771 -229 229 987 772 -228 228 986 773 -227 227 985 774 -226 226 984 775 -225 225 98...
result:
ok Correct. (1 test case)
Test #34:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
1000 1000 1000
output:
Yes 999 1 1 999 999 2 2 998 998 3 3 997 997 4 4 996 996 5 5 995 995 6 6 994 994 7 7 993 993 8 8 992 992 9 9 991 991 10 10 990 990 11 11 989 989 12 12 988 988 13 13 987 987 14 14 986 986 15 15 985 985 16 16 984 984 17 17 983 983 18 18 982 982 19 19 981 981 20 20 980 980 21 21 979 979 22 22 978 978 23...
result:
ok Correct. (1 test case)
Test #35:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2 1 1
output:
Yes 1 2 2 -1 -1
result:
ok Correct. (1 test case)
Test #36:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
2 1 2
output:
Yes 1 2 1 -1 1
result:
ok Correct. (1 test case)
Test #37:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
2 2 1
output:
Yes 1 1 2 1 -1
result:
ok Correct. (1 test case)
Test #38:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
2 2 2
output:
Yes 1 1 1 1 1
result:
ok Correct. (1 test case)
Test #39:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
810 114 514
output:
Yes 809 410 810 -296 -296 409 809 -295 -295 408 808 -294 -294 407 807 -293 -293 406 806 -292 -292 405 805 -291 -291 404 804 -290 -290 403 803 -289 -289 402 802 -288 -288 401 801 -287 -287 400 800 -286 -286 399 799 -285 -285 398 798 -284 -284 397 797 -283 -283 396 796 -282 -282 395 795 -281 -281 394 ...
result:
ok Correct. (1 test case)
Test #40:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
810 514 114
output:
Yes 809 114 514 400 -400 115 513 399 -399 116 512 398 -398 117 511 397 -397 118 510 396 -396 119 509 395 -395 120 508 394 -394 121 507 393 -393 122 506 392 -392 123 505 391 -391 124 504 390 -390 125 503 389 -389 126 502 388 -388 127 501 387 -387 128 500 386 -386 129 499 385 -385 130 498 384 -384 131...
result:
ok Correct. (1 test case)