QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#178029 | #6677. Puzzle: Sashigane | GuanYunchang | AC ✓ | 1ms | 3972kb | C++20 | 856b | 2023-09-13 17:29:04 | 2023-09-13 17:29:05 |
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: 3860kb
input:
5 3 4
output:
Yes 4 4 5 -1 -1 5 3 -2 2 2 2 3 3 1 1 4 4
result:
ok Correct. (1 test case)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
1 1 1
output:
Yes 0
result:
ok Correct. (1 test case)
Test #3:
score: 0
Accepted
time: 0ms
memory: 3836kb
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: 3868kb
input:
10 10 5
output:
Yes 9 9 6 1 -1 8 7 2 -2 7 8 3 -3 6 9 4 -4 5 10 5 -5 4 4 6 6 3 3 7 7 2 2 8 8 1 1 9 9
result:
ok Correct. (1 test case)
Test #5:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
10 5 7
output:
Yes 9 6 8 -1 -1 7 9 -2 -2 8 10 -3 -3 9 6 -4 4 10 5 -5 5 4 4 6 6 3 3 7 7 2 2 8 8 1 1 9 9
result:
ok Correct. (1 test case)
Test #6:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
10 9 2
output:
Yes 9 10 3 -1 -1 8 4 2 -2 7 5 3 -3 6 6 4 -4 5 7 5 -5 4 8 6 -6 3 9 7 -7 2 10 8 -8 1 1 9 9
result:
ok Correct. (1 test case)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
10 6 10
output:
Yes 9 7 9 -1 1 8 8 -2 2 9 7 -3 3 10 6 -4 4 5 5 5 5 4 4 6 6 3 3 7 7 2 2 8 8 1 1 9 9
result:
ok Correct. (1 test case)
Test #8:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
10 8 4
output:
Yes 9 9 5 -1 -1 10 6 -2 -2 7 7 3 -3 6 8 4 -4 5 9 5 -5 4 10 6 -6 3 3 7 7 2 2 8 8 1 1 9 9
result:
ok Correct. (1 test case)
Test #9:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
999 396 693
output:
Yes 998 397 694 -1 -1 398 695 -2 -2 399 696 -3 -3 400 697 -4 -4 401 698 -5 -5 402 699 -6 -6 403 700 -7 -7 404 701 -8 -8 405 702 -9 -9 406 703 -10 -10 407 704 -11 -11 408 705 -12 -12 409 706 -13 -13 410 707 -14 -14 411 708 -15 -15 412 709 -16 -16 413 710 -17 -17 414 711 -18 -18 415 712 -19 -19 416 71...
result:
ok Correct. (1 test case)
Test #10:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
999 963 827
output:
Yes 998 964 828 -1 -1 965 829 -2 -2 966 830 -3 -3 967 831 -4 -4 968 832 -5 -5 969 833 -6 -6 970 834 -7 -7 971 835 -8 -8 972 836 -9 -9 973 837 -10 -10 974 838 -11 -11 975 839 -12 -12 976 840 -13 -13 977 841 -14 -14 978 842 -15 -15 979 843 -16 -16 980 844 -17 -17 981 845 -18 -18 982 846 -19 -19 983 84...
result:
ok Correct. (1 test case)
Test #11:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
999 871 185
output:
Yes 998 872 186 -1 -1 873 187 -2 -2 874 188 -3 -3 875 189 -4 -4 876 190 -5 -5 877 191 -6 -6 878 192 -7 -7 879 193 -8 -8 880 194 -9 -9 881 195 -10 -10 882 196 -11 -11 883 197 -12 -12 884 198 -13 -13 885 199 -14 -14 886 200 -15 -15 887 201 -16 -16 888 202 -17 -17 889 203 -18 -18 890 204 -19 -19 891 20...
result:
ok Correct. (1 test case)
Test #12:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
999 787 812
output:
Yes 998 788 813 -1 -1 789 814 -2 -2 790 815 -3 -3 791 816 -4 -4 792 817 -5 -5 793 818 -6 -6 794 819 -7 -7 795 820 -8 -8 796 821 -9 -9 797 822 -10 -10 798 823 -11 -11 799 824 -12 -12 800 825 -13 -13 801 826 -14 -14 802 827 -15 -15 803 828 -16 -16 804 829 -17 -17 805 830 -18 -18 806 831 -19 -19 807 83...
result:
ok Correct. (1 test case)
Test #13:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
999 396 199
output:
Yes 998 397 200 -1 -1 398 201 -2 -2 399 202 -3 -3 400 203 -4 -4 401 204 -5 -5 402 205 -6 -6 403 206 -7 -7 404 207 -8 -8 405 208 -9 -9 406 209 -10 -10 407 210 -11 -11 408 211 -12 -12 409 212 -13 -13 410 213 -14 -14 411 214 -15 -15 412 215 -16 -16 413 216 -17 -17 414 217 -18 -18 415 218 -19 -19 416 21...
result:
ok Correct. (1 test case)
Test #14:
score: 0
Accepted
time: 1ms
memory: 3904kb
input:
999 1 1
output:
Yes 998 2 2 -1 -1 3 3 -2 -2 4 4 -3 -3 5 5 -4 -4 6 6 -5 -5 7 7 -6 -6 8 8 -7 -7 9 9 -8 -8 10 10 -9 -9 11 11 -10 -10 12 12 -11 -11 13 13 -12 -12 14 14 -13 -13 15 15 -14 -14 16 16 -15 -15 17 17 -16 -16 18 18 -17 -17 19 19 -18 -18 20 20 -19 -19 21 21 -20 -20 22 22 -21 -21 23 23 -22 -22 24 24 -23 -23 25 2...
result:
ok Correct. (1 test case)
Test #15:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
999 163 1
output:
Yes 998 164 2 -1 -1 165 3 -2 -2 166 4 -3 -3 167 5 -4 -4 168 6 -5 -5 169 7 -6 -6 170 8 -7 -7 171 9 -8 -8 172 10 -9 -9 173 11 -10 -10 174 12 -11 -11 175 13 -12 -12 176 14 -13 -13 177 15 -14 -14 178 16 -15 -15 179 17 -16 -16 180 18 -17 -17 181 19 -18 -18 182 20 -19 -19 183 21 -20 -20 184 22 -21 -21 185...
result:
ok Correct. (1 test case)
Test #16:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
999 999 1
output:
Yes 998 998 2 1 -1 997 3 2 -2 996 4 3 -3 995 5 4 -4 994 6 5 -5 993 7 6 -6 992 8 7 -7 991 9 8 -8 990 10 9 -9 989 11 10 -10 988 12 11 -11 987 13 12 -12 986 14 13 -13 985 15 14 -14 984 16 15 -15 983 17 16 -16 982 18 17 -17 981 19 18 -18 980 20 19 -19 979 21 20 -20 978 22 21 -21 977 23 22 -22 976 24 23 ...
result:
ok Correct. (1 test case)
Test #17:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
999 1 969
output:
Yes 998 2 970 -1 -1 3 971 -2 -2 4 972 -3 -3 5 973 -4 -4 6 974 -5 -5 7 975 -6 -6 8 976 -7 -7 9 977 -8 -8 10 978 -9 -9 11 979 -10 -10 12 980 -11 -11 13 981 -12 -12 14 982 -13 -13 15 983 -14 -14 16 984 -15 -15 17 985 -16 -16 18 986 -17 -17 19 987 -18 -18 20 988 -19 -19 21 989 -20 -20 22 990 -21 -21 23 ...
result:
ok Correct. (1 test case)
Test #18:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
999 999 780
output:
Yes 998 998 781 1 -1 997 782 2 -2 996 783 3 -3 995 784 4 -4 994 785 5 -5 993 786 6 -6 992 787 7 -7 991 788 8 -8 990 789 9 -9 989 790 10 -10 988 791 11 -11 987 792 12 -12 986 793 13 -13 985 794 14 -14 984 795 15 -15 983 796 16 -16 982 797 17 -17 981 798 18 -18 980 799 19 -19 979 800 20 -20 978 801 21...
result:
ok Correct. (1 test case)
Test #19:
score: 0
Accepted
time: 1ms
memory: 3832kb
input:
999 1 999
output:
Yes 998 2 998 -1 1 3 997 -2 2 4 996 -3 3 5 995 -4 4 6 994 -5 5 7 993 -6 6 8 992 -7 7 9 991 -8 8 10 990 -9 9 11 989 -10 10 12 988 -11 11 13 987 -12 12 14 986 -13 13 15 985 -14 14 16 984 -15 15 17 983 -16 16 18 982 -17 17 19 981 -18 18 20 980 -19 19 21 979 -20 20 22 978 -21 21 23 977 -22 22 24 976 -23...
result:
ok Correct. (1 test case)
Test #20:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
999 686 999
output:
Yes 998 687 998 -1 1 688 997 -2 2 689 996 -3 3 690 995 -4 4 691 994 -5 5 692 993 -6 6 693 992 -7 7 694 991 -8 8 695 990 -9 9 696 989 -10 10 697 988 -11 11 698 987 -12 12 699 986 -13 13 700 985 -14 14 701 984 -15 15 702 983 -16 16 703 982 -17 17 704 981 -18 18 705 980 -19 19 706 979 -20 20 707 978 -2...
result:
ok Correct. (1 test case)
Test #21:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
999 999 999
output:
Yes 998 998 998 1 1 997 997 2 2 996 996 3 3 995 995 4 4 994 994 5 5 993 993 6 6 992 992 7 7 991 991 8 8 990 990 9 9 989 989 10 10 988 988 11 11 987 987 12 12 986 986 13 13 985 985 14 14 984 984 15 15 983 983 16 16 982 982 17 17 981 981 18 18 980 980 19 19 979 979 20 20 978 978 21 21 977 977 22 22 97...
result:
ok Correct. (1 test case)
Test #22:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
1000 757 728
output:
Yes 999 758 729 -1 -1 759 730 -2 -2 760 731 -3 -3 761 732 -4 -4 762 733 -5 -5 763 734 -6 -6 764 735 -7 -7 765 736 -8 -8 766 737 -9 -9 767 738 -10 -10 768 739 -11 -11 769 740 -12 -12 770 741 -13 -13 771 742 -14 -14 772 743 -15 -15 773 744 -16 -16 774 745 -17 -17 775 746 -18 -18 776 747 -19 -19 777 74...
result:
ok Correct. (1 test case)
Test #23:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
1000 132 993
output:
Yes 999 133 994 -1 -1 134 995 -2 -2 135 996 -3 -3 136 997 -4 -4 137 998 -5 -5 138 999 -6 -6 139 1000 -7 -7 140 992 -8 8 141 991 -9 9 142 990 -10 10 143 989 -11 11 144 988 -12 12 145 987 -13 13 146 986 -14 14 147 985 -15 15 148 984 -16 16 149 983 -17 17 150 982 -18 18 151 981 -19 19 152 980 -20 20 15...
result:
ok Correct. (1 test case)
Test #24:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
1000 703 499
output:
Yes 999 704 500 -1 -1 705 501 -2 -2 706 502 -3 -3 707 503 -4 -4 708 504 -5 -5 709 505 -6 -6 710 506 -7 -7 711 507 -8 -8 712 508 -9 -9 713 509 -10 -10 714 510 -11 -11 715 511 -12 -12 716 512 -13 -13 717 513 -14 -14 718 514 -15 -15 719 515 -16 -16 720 516 -17 -17 721 517 -18 -18 722 518 -19 -19 723 51...
result:
ok Correct. (1 test case)
Test #25:
score: 0
Accepted
time: 1ms
memory: 3784kb
input:
1000 910 298
output:
Yes 999 911 299 -1 -1 912 300 -2 -2 913 301 -3 -3 914 302 -4 -4 915 303 -5 -5 916 304 -6 -6 917 305 -7 -7 918 306 -8 -8 919 307 -9 -9 920 308 -10 -10 921 309 -11 -11 922 310 -12 -12 923 311 -13 -13 924 312 -14 -14 925 313 -15 -15 926 314 -16 -16 927 315 -17 -17 928 316 -18 -18 929 317 -19 -19 930 31...
result:
ok Correct. (1 test case)
Test #26:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
1000 171 322
output:
Yes 999 172 323 -1 -1 173 324 -2 -2 174 325 -3 -3 175 326 -4 -4 176 327 -5 -5 177 328 -6 -6 178 329 -7 -7 179 330 -8 -8 180 331 -9 -9 181 332 -10 -10 182 333 -11 -11 183 334 -12 -12 184 335 -13 -13 185 336 -14 -14 186 337 -15 -15 187 338 -16 -16 188 339 -17 -17 189 340 -18 -18 190 341 -19 -19 191 34...
result:
ok Correct. (1 test case)
Test #27:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
1000 1 1
output:
Yes 999 2 2 -1 -1 3 3 -2 -2 4 4 -3 -3 5 5 -4 -4 6 6 -5 -5 7 7 -6 -6 8 8 -7 -7 9 9 -8 -8 10 10 -9 -9 11 11 -10 -10 12 12 -11 -11 13 13 -12 -12 14 14 -13 -13 15 15 -14 -14 16 16 -15 -15 17 17 -16 -16 18 18 -17 -17 19 19 -18 -18 20 20 -19 -19 21 21 -20 -20 22 22 -21 -21 23 23 -22 -22 24 24 -23 -23 25 2...
result:
ok Correct. (1 test case)
Test #28:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
1000 480 1
output:
Yes 999 481 2 -1 -1 482 3 -2 -2 483 4 -3 -3 484 5 -4 -4 485 6 -5 -5 486 7 -6 -6 487 8 -7 -7 488 9 -8 -8 489 10 -9 -9 490 11 -10 -10 491 12 -11 -11 492 13 -12 -12 493 14 -13 -13 494 15 -14 -14 495 16 -15 -15 496 17 -16 -16 497 18 -17 -17 498 19 -18 -18 499 20 -19 -19 500 21 -20 -20 501 22 -21 -21 502...
result:
ok Correct. (1 test case)
Test #29:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
1000 1000 1
output:
Yes 999 999 2 1 -1 998 3 2 -2 997 4 3 -3 996 5 4 -4 995 6 5 -5 994 7 6 -6 993 8 7 -7 992 9 8 -8 991 10 9 -9 990 11 10 -10 989 12 11 -11 988 13 12 -12 987 14 13 -13 986 15 14 -14 985 16 15 -15 984 17 16 -16 983 18 17 -17 982 19 18 -18 981 20 19 -19 980 21 20 -20 979 22 21 -21 978 23 22 -22 977 24 23 ...
result:
ok Correct. (1 test case)
Test #30:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
1000 1 339
output:
Yes 999 2 340 -1 -1 3 341 -2 -2 4 342 -3 -3 5 343 -4 -4 6 344 -5 -5 7 345 -6 -6 8 346 -7 -7 9 347 -8 -8 10 348 -9 -9 11 349 -10 -10 12 350 -11 -11 13 351 -12 -12 14 352 -13 -13 15 353 -14 -14 16 354 -15 -15 17 355 -16 -16 18 356 -17 -17 19 357 -18 -18 20 358 -19 -19 21 359 -20 -20 22 360 -21 -21 23 ...
result:
ok Correct. (1 test case)
Test #31:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
1000 1000 161
output:
Yes 999 999 162 1 -1 998 163 2 -2 997 164 3 -3 996 165 4 -4 995 166 5 -5 994 167 6 -6 993 168 7 -7 992 169 8 -8 991 170 9 -9 990 171 10 -10 989 172 11 -11 988 173 12 -12 987 174 13 -13 986 175 14 -14 985 176 15 -15 984 177 16 -16 983 178 17 -17 982 179 18 -18 981 180 19 -19 980 181 20 -20 979 182 21...
result:
ok Correct. (1 test case)
Test #32:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
1000 1 1000
output:
Yes 999 2 999 -1 1 3 998 -2 2 4 997 -3 3 5 996 -4 4 6 995 -5 5 7 994 -6 6 8 993 -7 7 9 992 -8 8 10 991 -9 9 11 990 -10 10 12 989 -11 11 13 988 -12 12 14 987 -13 13 15 986 -14 14 16 985 -15 15 17 984 -16 16 18 983 -17 17 19 982 -18 18 20 981 -19 19 21 980 -20 20 22 979 -21 21 23 978 -22 22 24 977 -23...
result:
ok Correct. (1 test case)
Test #33:
score: 0
Accepted
time: 0ms
memory: 3972kb
input:
1000 759 1000
output:
Yes 999 760 999 -1 1 761 998 -2 2 762 997 -3 3 763 996 -4 4 764 995 -5 5 765 994 -6 6 766 993 -7 7 767 992 -8 8 768 991 -9 9 769 990 -10 10 770 989 -11 11 771 988 -12 12 772 987 -13 13 773 986 -14 14 774 985 -15 15 775 984 -16 16 776 983 -17 17 777 982 -18 18 778 981 -19 19 779 980 -20 20 780 979 -2...
result:
ok Correct. (1 test case)
Test #34:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
1000 1000 1000
output:
Yes 999 999 999 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 97...
result:
ok Correct. (1 test case)
Test #35:
score: 0
Accepted
time: 0ms
memory: 3904kb
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: 3784kb
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: 3864kb
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: 3864kb
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: 3808kb
input:
810 114 514
output:
Yes 809 115 515 -1 -1 116 516 -2 -2 117 517 -3 -3 118 518 -4 -4 119 519 -5 -5 120 520 -6 -6 121 521 -7 -7 122 522 -8 -8 123 523 -9 -9 124 524 -10 -10 125 525 -11 -11 126 526 -12 -12 127 527 -13 -13 128 528 -14 -14 129 529 -15 -15 130 530 -16 -16 131 531 -17 -17 132 532 -18 -18 133 533 -19 -19 134 53...
result:
ok Correct. (1 test case)
Test #40:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
810 514 114
output:
Yes 809 515 115 -1 -1 516 116 -2 -2 517 117 -3 -3 518 118 -4 -4 519 119 -5 -5 520 120 -6 -6 521 121 -7 -7 522 122 -8 -8 523 123 -9 -9 524 124 -10 -10 525 125 -11 -11 526 126 -12 -12 527 127 -13 -13 528 128 -14 -14 529 129 -15 -15 530 130 -16 -16 531 131 -17 -17 532 132 -18 -18 533 133 -19 -19 534 13...
result:
ok Correct. (1 test case)