QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#177782#6677. Puzzle: SashiganeGuanYunchangAC ✓1ms4004kbC++172.5kb2023-09-13 13:23:052023-09-13 13:23:05

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3868kb

input:

5 3 4

output:

Yes
4
2 3 2 1
4 5 -2 -1
1 2 3 3
5 1 -4 4

result:

ok Correct. (1 test case)

Test #2:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

1 1 1

output:

Yes
0

result:

ok Correct. (1 test case)

Test #3:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

3 2 3

output:

Yes
2
1 2 1 1
3 1 -2 2

result:

ok Correct. (1 test case)

Test #4:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

10 10 5

output:

Yes
9
9 4 1 1
8 3 2 2
7 2 3 3
6 1 4 4
5 6 5 -5
4 7 6 -6
3 8 7 -7
2 9 8 -8
1 10 9 -9

result:

ok Correct. (1 test case)

Test #5:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

10 5 7

output:

Yes
9
4 6 2 1
6 8 -2 -1
3 5 4 3
7 9 -4 -3
2 4 6 5
8 10 -6 -5
1 3 7 7
9 2 -8 8
10 1 -9 9

result:

ok Correct. (1 test case)

Test #6:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

10 9 2

output:

Yes
9
8 1 2 1
10 3 -2 -1
7 4 3 -3
6 5 4 -4
5 6 5 -5
4 7 6 -6
3 8 7 -7
2 9 8 -8
1 10 9 -9

result:

ok Correct. (1 test case)

Test #7:

score: 0
Accepted
time: 0ms
memory: 3980kb

input:

10 6 10

output:

Yes
9
5 9 1 1
4 8 2 2
3 7 3 3
2 6 4 4
1 5 5 5
7 4 -6 6
8 3 -7 7
9 2 -8 8
10 1 -9 9

result:

ok Correct. (1 test case)

Test #8:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

10 8 4

output:

Yes
9
7 3 2 1
9 5 -2 -1
6 2 4 3
10 6 -4 -3
5 1 5 5
4 7 6 -6
3 8 7 -7
2 9 8 -8
1 10 9 -9

result:

ok Correct. (1 test case)

Test #9:

score: 0
Accepted
time: 0ms
memory: 3892kb

input:

999 396 693

output:

Yes
998
395 692 2 1
397 694 -2 -1
394 691 4 3
398 695 -4 -3
393 690 6 5
399 696 -6 -5
392 689 8 7
400 697 -8 -7
391 688 10 9
401 698 -10 -9
390 687 12 11
402 699 -12 -11
389 686 14 13
403 700 -14 -13
388 685 16 15
404 701 -16 -15
387 684 18 17
405 702 -18 -17
386 683 20 19
406 703 -20 -19
385 682 22...

result:

ok Correct. (1 test case)

Test #10:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

999 963 827

output:

Yes
998
962 826 2 1
964 828 -2 -1
961 825 4 3
965 829 -4 -3
960 824 6 5
966 830 -6 -5
959 823 8 7
967 831 -8 -7
958 822 10 9
968 832 -10 -9
957 821 12 11
969 833 -12 -11
956 820 14 13
970 834 -14 -13
955 819 16 15
971 835 -16 -15
954 818 18 17
972 836 -18 -17
953 817 20 19
973 837 -20 -19
952 816 22...

result:

ok Correct. (1 test case)

Test #11:

score: 0
Accepted
time: 0ms
memory: 3940kb

input:

999 871 185

output:

Yes
998
870 184 2 1
872 186 -2 -1
869 183 4 3
873 187 -4 -3
868 182 6 5
874 188 -6 -5
867 181 8 7
875 189 -8 -7
866 180 10 9
876 190 -10 -9
865 179 12 11
877 191 -12 -11
864 178 14 13
878 192 -14 -13
863 177 16 15
879 193 -16 -15
862 176 18 17
880 194 -18 -17
861 175 20 19
881 195 -20 -19
860 174 22...

result:

ok Correct. (1 test case)

Test #12:

score: 0
Accepted
time: 0ms
memory: 3880kb

input:

999 787 812

output:

Yes
998
786 811 2 1
788 813 -2 -1
785 810 4 3
789 814 -4 -3
784 809 6 5
790 815 -6 -5
783 808 8 7
791 816 -8 -7
782 807 10 9
792 817 -10 -9
781 806 12 11
793 818 -12 -11
780 805 14 13
794 819 -14 -13
779 804 16 15
795 820 -16 -15
778 803 18 17
796 821 -18 -17
777 802 20 19
797 822 -20 -19
776 801 22...

result:

ok Correct. (1 test case)

Test #13:

score: 0
Accepted
time: 0ms
memory: 3820kb

input:

999 396 199

output:

Yes
998
395 198 2 1
397 200 -2 -1
394 197 4 3
398 201 -4 -3
393 196 6 5
399 202 -6 -5
392 195 8 7
400 203 -8 -7
391 194 10 9
401 204 -10 -9
390 193 12 11
402 205 -12 -11
389 192 14 13
403 206 -14 -13
388 191 16 15
404 207 -16 -15
387 190 18 17
405 208 -18 -17
386 189 20 19
406 209 -20 -19
385 188 22...

result:

ok Correct. (1 test case)

Test #14:

score: 0
Accepted
time: 1ms
memory: 3824kb

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: 1ms
memory: 3896kb

input:

999 163 1

output:

Yes
998
162 2 1 -1
161 3 2 -2
160 4 3 -3
159 5 4 -4
158 6 5 -5
157 7 6 -6
156 8 7 -7
155 9 8 -8
154 10 9 -9
153 11 10 -10
152 12 11 -11
151 13 12 -12
150 14 13 -13
149 15 14 -14
148 16 15 -15
147 17 16 -16
146 18 17 -17
145 19 18 -18
144 20 19 -19
143 21 20 -20
142 22 21 -21
141 23 22 -22
140 24 23 ...

result:

ok Correct. (1 test case)

Test #16:

score: 0
Accepted
time: 1ms
memory: 3828kb

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: 0ms
memory: 3872kb

input:

999 1 969

output:

Yes
998
2 968 -1 1
3 967 -2 2
4 966 -3 3
5 965 -4 4
6 964 -5 5
7 963 -6 6
8 962 -7 7
9 961 -8 8
10 960 -9 9
11 959 -10 10
12 958 -11 11
13 957 -12 12
14 956 -13 13
15 955 -14 14
16 954 -15 15
17 953 -16 16
18 952 -17 17
19 951 -18 18
20 950 -19 19
21 949 -20 20
22 948 -21 21
23 947 -22 22
24 946 -23...

result:

ok Correct. (1 test case)

Test #18:

score: 0
Accepted
time: 0ms
memory: 3896kb

input:

999 999 780

output:

Yes
998
998 779 1 1
997 778 2 2
996 777 3 3
995 776 4 4
994 775 5 5
993 774 6 6
992 773 7 7
991 772 8 8
990 771 9 9
989 770 10 10
988 769 11 11
987 768 12 12
986 767 13 13
985 766 14 14
984 765 15 15
983 764 16 16
982 763 17 17
981 762 18 18
980 761 19 19
979 760 20 20
978 759 21 21
977 758 22 22
97...

result:

ok Correct. (1 test case)

Test #19:

score: 0
Accepted
time: 0ms
memory: 3856kb

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: 3896kb

input:

999 686 999

output:

Yes
998
685 998 1 1
684 997 2 2
683 996 3 3
682 995 4 4
681 994 5 5
680 993 6 6
679 992 7 7
678 991 8 8
677 990 9 9
676 989 10 10
675 988 11 11
674 987 12 12
673 986 13 13
672 985 14 14
671 984 15 15
670 983 16 16
669 982 17 17
668 981 18 18
667 980 19 19
666 979 20 20
665 978 21 21
664 977 22 22
66...

result:

ok Correct. (1 test case)

Test #21:

score: 0
Accepted
time: 0ms
memory: 3820kb

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: 1ms
memory: 3896kb

input:

1000 757 728

output:

Yes
999
756 727 2 1
758 729 -2 -1
755 726 4 3
759 730 -4 -3
754 725 6 5
760 731 -6 -5
753 724 8 7
761 732 -8 -7
752 723 10 9
762 733 -10 -9
751 722 12 11
763 734 -12 -11
750 721 14 13
764 735 -14 -13
749 720 16 15
765 736 -16 -15
748 719 18 17
766 737 -18 -17
747 718 20 19
767 738 -20 -19
746 717 22...

result:

ok Correct. (1 test case)

Test #23:

score: 0
Accepted
time: 1ms
memory: 3940kb

input:

1000 132 993

output:

Yes
999
131 992 2 1
133 994 -2 -1
130 991 4 3
134 995 -4 -3
129 990 6 5
135 996 -6 -5
128 989 8 7
136 997 -8 -7
127 988 10 9
137 998 -10 -9
126 987 12 11
138 999 -12 -11
125 986 14 13
139 1000 -14 -13
124 985 15 15
123 984 16 16
122 983 17 17
121 982 18 18
120 981 19 19
119 980 20 20
118 979 21 21
1...

result:

ok Correct. (1 test case)

Test #24:

score: 0
Accepted
time: 0ms
memory: 3880kb

input:

1000 703 499

output:

Yes
999
702 498 2 1
704 500 -2 -1
701 497 4 3
705 501 -4 -3
700 496 6 5
706 502 -6 -5
699 495 8 7
707 503 -8 -7
698 494 10 9
708 504 -10 -9
697 493 12 11
709 505 -12 -11
696 492 14 13
710 506 -14 -13
695 491 16 15
711 507 -16 -15
694 490 18 17
712 508 -18 -17
693 489 20 19
713 509 -20 -19
692 488 22...

result:

ok Correct. (1 test case)

Test #25:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

1000 910 298

output:

Yes
999
909 297 2 1
911 299 -2 -1
908 296 4 3
912 300 -4 -3
907 295 6 5
913 301 -6 -5
906 294 8 7
914 302 -8 -7
905 293 10 9
915 303 -10 -9
904 292 12 11
916 304 -12 -11
903 291 14 13
917 305 -14 -13
902 290 16 15
918 306 -16 -15
901 289 18 17
919 307 -18 -17
900 288 20 19
920 308 -20 -19
899 287 22...

result:

ok Correct. (1 test case)

Test #26:

score: 0
Accepted
time: 0ms
memory: 4004kb

input:

1000 171 322

output:

Yes
999
170 321 2 1
172 323 -2 -1
169 320 4 3
173 324 -4 -3
168 319 6 5
174 325 -6 -5
167 318 8 7
175 326 -8 -7
166 317 10 9
176 327 -10 -9
165 316 12 11
177 328 -12 -11
164 315 14 13
178 329 -14 -13
163 314 16 15
179 330 -16 -15
162 313 18 17
180 331 -18 -17
161 312 20 19
181 332 -20 -19
160 311 22...

result:

ok Correct. (1 test case)

Test #27:

score: 0
Accepted
time: 1ms
memory: 3856kb

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
479 2 1 -1
478 3 2 -2
477 4 3 -3
476 5 4 -4
475 6 5 -5
474 7 6 -6
473 8 7 -7
472 9 8 -8
471 10 9 -9
470 11 10 -10
469 12 11 -11
468 13 12 -12
467 14 13 -13
466 15 14 -14
465 16 15 -15
464 17 16 -16
463 18 17 -17
462 19 18 -18
461 20 19 -19
460 21 20 -20
459 22 21 -21
458 23 22 -22
457 24 23 ...

result:

ok Correct. (1 test case)

Test #29:

score: 0
Accepted
time: 1ms
memory: 3820kb

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: 1ms
memory: 4004kb

input:

1000 1 339

output:

Yes
999
2 338 -1 1
3 337 -2 2
4 336 -3 3
5 335 -4 4
6 334 -5 5
7 333 -6 6
8 332 -7 7
9 331 -8 8
10 330 -9 9
11 329 -10 10
12 328 -11 11
13 327 -12 12
14 326 -13 13
15 325 -14 14
16 324 -15 15
17 323 -16 16
18 322 -17 17
19 321 -18 18
20 320 -19 19
21 319 -20 20
22 318 -21 21
23 317 -22 22
24 316 -23...

result:

ok Correct. (1 test case)

Test #31:

score: 0
Accepted
time: 0ms
memory: 3896kb

input:

1000 1000 161

output:

Yes
999
999 160 1 1
998 159 2 2
997 158 3 3
996 157 4 4
995 156 5 5
994 155 6 6
993 154 7 7
992 153 8 8
991 152 9 9
990 151 10 10
989 150 11 11
988 149 12 12
987 148 13 13
986 147 14 14
985 146 15 15
984 145 16 16
983 144 17 17
982 143 18 18
981 142 19 19
980 141 20 20
979 140 21 21
978 139 22 22
97...

result:

ok Correct. (1 test case)

Test #32:

score: 0
Accepted
time: 0ms
memory: 3880kb

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: 3888kb

input:

1000 759 1000

output:

Yes
999
758 999 1 1
757 998 2 2
756 997 3 3
755 996 4 4
754 995 5 5
753 994 6 6
752 993 7 7
751 992 8 8
750 991 9 9
749 990 10 10
748 989 11 11
747 988 12 12
746 987 13 13
745 986 14 14
744 985 15 15
743 984 16 16
742 983 17 17
741 982 18 18
740 981 19 19
739 980 20 20
738 979 21 21
737 978 22 22
73...

result:

ok Correct. (1 test case)

Test #34:

score: 0
Accepted
time: 0ms
memory: 3944kb

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: 3908kb

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: 3832kb

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: 3948kb

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: 3804kb

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: 3880kb

input:

810 114 514

output:

Yes
809
113 513 2 1
115 515 -2 -1
112 512 4 3
116 516 -4 -3
111 511 6 5
117 517 -6 -5
110 510 8 7
118 518 -8 -7
109 509 10 9
119 519 -10 -9
108 508 12 11
120 520 -12 -11
107 507 14 13
121 521 -14 -13
106 506 16 15
122 522 -16 -15
105 505 18 17
123 523 -18 -17
104 504 20 19
124 524 -20 -19
103 503 22...

result:

ok Correct. (1 test case)

Test #40:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

810 514 114

output:

Yes
809
513 113 2 1
515 115 -2 -1
512 112 4 3
516 116 -4 -3
511 111 6 5
517 117 -6 -5
510 110 8 7
518 118 -8 -7
509 109 10 9
519 119 -10 -9
508 108 12 11
520 120 -12 -11
507 107 14 13
521 121 -14 -13
506 106 16 15
522 122 -16 -15
505 105 18 17
523 123 -18 -17
504 104 20 19
524 124 -20 -19
503 103 22...

result:

ok Correct. (1 test case)