QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#378321#6140. 矩阵游戏hyforces#0 1ms3864kbC++202.1kb2024-04-06 11:21:322024-04-28 08:45:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3764kb

input:

10
3 3
9 21
22 16
3 3
28 30
13 4
3 3
17 10
5 30
3 3
30 27
30 25
3 3
22 19
28 12
3 3
30 27
21 28
3 3
4 25
11 5
3 3
12 24
24 30
3 3
5 4
27 8
3 3
20 29
17 18

output:

YES
0 0 0 
0 9 12 
0 13 0 
YES
0 0 0 
0 28 2 
0 -15 45 
YES
0 0 0 
0 17 -7 
0 -12 66 
YES
0 0 0 
0 30 -3 
0 0 58 
YES
0 0 0 
0 22 -3 
0 6 31 
YES
0 0 0 
0 30 -3 
0 -9 70 
YES
0 0 0 
0 4 21 
0 7 -19 
YES
0 0 0 
0 12 12 
0 12 18 
YES
0 0 0 
0 5 -1 
0 22 -8 
YES
0 0 0 
0 20 9 
0 -3 32 

result:

wrong answer invalid answer

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 3824kb

input:

10
3 3
5 18
16 21
3 3
28 30
27 5
3 3
30 12
9 11
3 3
28 20
30 13
3 3
22 27
28 5
3 3
30 29
30 23
3 3
17 13
22 13
3 3
29 24
29 25
3 3
23 12
3 2
3 3
20 30
23 30

output:

YES
0 0 0 
0 5 13 
0 11 2 
YES
0 0 0 
0 28 2 
0 -1 32 
YES
0 0 0 
0 30 -18 
0 -21 80 
YES
0 0 0 
0 28 -8 
0 2 47 
YES
0 0 0 
0 22 5 
0 6 16 
YES
0 0 0 
0 30 -1 
0 0 54 
YES
0 0 0 
0 17 -4 
0 5 29 
YES
0 0 0 
0 29 -5 
0 0 59 
YES
0 0 0 
0 23 -11 
0 -20 56 
YES
0 0 0 
0 20 10 
0 3 37 

result:

wrong answer invalid answer

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 3620kb

input:

10
3 3
17 22
17 27
3 3
30 24
30 30
3 3
11 16
10 15
3 3
29 18
19 27
3 3
12 2
25 26
3 3
27 28
29 30
3 3
14 11
8 16
3 3
29 27
26 15
3 3
1 21
25 12
3 3
30 28
21 27

output:

YES
0 0 0 
0 17 5 
0 0 39 
YES
0 0 0 
0 30 -6 
0 0 66 
YES
0 0 0 
0 11 5 
0 -1 22 
YES
0 0 0 
0 29 -11 
0 -10 77 
YES
0 0 0 
0 12 -10 
0 13 35 
YES
0 0 0 
0 27 1 
0 2 54 
YES
0 0 0 
0 14 -3 
0 -6 39 
YES
0 0 0 
0 29 -2 
0 -3 49 
YES
0 0 0 
0 1 20 
0 24 -31 
YES
0 0 0 
0 30 -2 
0 -9 68 

result:

wrong answer invalid answer

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 3616kb

input:

10
3 3
6 30
30 11
3 3
29 28
11 25
3 3
26 26
15 22
3 3
23 30
29 6
3 3
16 8
13 20
3 3
26 30
29 28
3 3
3 24
4 2
3 3
29 30
24 29
3 3
15 12
7 4
3 3
30 26
25 30

output:

YES
0 0 0 
0 6 24 
0 24 -31 
YES
0 0 0 
0 29 -1 
0 -18 73 
YES
0 0 0 
0 26 0 
0 -11 59 
YES
0 0 0 
0 23 7 
0 6 16 
YES
0 0 0 
0 16 -8 
0 -3 47 
YES
0 0 0 
0 26 4 
0 3 47 
YES
0 0 0 
0 3 21 
0 1 -17 
YES
0 0 0 
0 29 1 
0 -5 62 
YES
0 0 0 
0 15 -3 
0 -8 30 
YES
0 0 0 
0 30 -4 
0 -5 69 

result:

wrong answer invalid answer

Test #5:

score: 0
Wrong Answer
time: 1ms
memory: 3864kb

input:

10
10 2
240
8788
3257
6676
9748
4941
1268
2569
7827
10 2
9542
9328
8351
9362
9771
9183
8527
8640
7370
10 2
3144
7704
2054
9901
3567
120
2273
2407
4202
10 2
7337
9013
9119
9547
8526
8071
8475
6682
9273
10 2
746
9791
1891
3204
8908
1495
1353
9406
1176
10 2
9884
6039
4691
9956
8516
9454
9649
8966
9380
...

output:

YES
0 0 
0 240 
0 8548 
0 -5291 
0 11967 
0 -2219 
0 7160 
0 -5892 
0 8461 
0 -634 
YES
0 0 
0 9542 
0 -214 
0 8565 
0 797 
0 8974 
0 209 
0 8318 
0 322 
0 7048 
YES
0 0 
0 3144 
0 4560 
0 -2506 
0 12407 
0 -8840 
0 8960 
0 -6687 
0 9094 
0 -4892 
YES
0 0 
0 7337 
0 1676 
0 7443 
0 2104 
0 6422 
0 1...

result:

wrong answer expected: NO, found: YES

Test #6:

score: 0
Wrong Answer
time: 0ms
memory: 3572kb

input:

10
10 2
7221
6762
7271
4154
1804
3226
6434
8357
2359
10 2
8581
5933
9174
9731
9716
9180
8744
9947
6264
10 2
282
9689
7228
960
2522
6806
7516
7002
9829
10 2
9202
8816
8250
9267
8287
8105
9707
8985
9226
10 2
2004
254
7197
7613
9790
5556
3064
6363
6489
10 2
7863
9827
9600
9998
7626
6038
9530
8772
8501
...

output:

YES
0 0 
0 7221 
0 -459 
0 7730 
0 -3576 
0 5380 
0 -2154 
0 8588 
0 -231 
0 2590 
YES
0 0 
0 8581 
0 -2648 
0 11822 
0 -2091 
0 11807 
0 -2627 
0 11371 
0 -1424 
0 7688 
YES
0 0 
0 282 
0 9407 
0 -2179 
0 3139 
0 -617 
0 7423 
0 93 
0 6909 
0 2920 
YES
0 0 
0 9202 
0 -386 
0 8636 
0 631 
0 7656 
0 ...

result:

wrong answer expected: NO, found: YES

Test #7:

score: 0
Wrong Answer
time: 0ms
memory: 3552kb

input:

10
10 2
2492
6642
8650
4949
7971
7552
5729
6137
3224
10 2
8862
4232
4370
9422
9787
8443
9745
9230
9708
10 2
1073
3311
5736
6108
1985
2880
2596
1260
4678
10 2
9862
9822
8867
4686
9645
7259
7954
9855
9482
10 2
6532
3248
1799
3767
7693
4389
5786
1124
9586
10 2
7667
9393
6828
8642
9482
8512
8366
7067
87...

output:

YES
0 0 
0 2492 
0 4150 
0 4500 
0 449 
0 7522 
0 30 
0 5699 
0 438 
0 2786 
YES
0 0 
0 8862 
0 -4630 
0 9000 
0 422 
0 9365 
0 -922 
0 10667 
0 -1437 
0 11145 
YES
0 0 
0 1073 
0 2238 
0 3498 
0 2610 
0 -625 
0 3505 
0 -909 
0 2169 
0 2509 
YES
0 0 
0 9862 
0 -40 
0 8907 
0 -4221 
0 13866 
0 -6607 ...

result:

wrong answer invalid answer

Test #8:

score: 0
Runtime Error

input:

10
100 2
407406
741582
966880
693984
175204
991130
183615
326373
131306
366816
697972
180227
398068
835836
746523
999640
178807
545159
437329
536071
721606
306737
181599
455551
733444
231865
77996
588988
897019
804401
528918
524503
349494
623245
534144
344637
25518
791164
100668
547254
630911
346372...

output:


result:


Test #9:

score: 0
Runtime Error

input:

10
100 2
514849
121431
445450
996530
912655
547635
39581
89505
975458
843069
273144
700881
59053
289340
848708
32178
700710
194859
273472
213196
384827
341987
482545
308239
413944
599935
848280
843825
979288
195213
209986
440149
934390
768000
882462
200861
119570
174661
871708
511415
426500
576587
5...

output:


result:


Test #10:

score: 0
Runtime Error

input:

10
100 2
650385
567657
465159
181316
696069
211308
655715
128129
988551
838473
44280
61031
528962
277047
286263
142130
248066
307713
578918
695526
89569
48119
569157
673222
295474
923221
90394
912892
523136
369133
635906
272262
887296
438346
625250
217263
729637
256075
898161
999382
845113
626531
74...

output:


result:


Test #11:

score: 0
Runtime Error

input:

10
300 298
0 0 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 1 1 1 1 0 1 1 0 1 1 0 0 1 1 0 0 1 1 0 1 1 0 0 0 0 1 1 0 0 0 0 0 1 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 1 0 1 1 0 1 1 1 0 0 0...

output:


result:


Test #12:

score: 0
Runtime Error

input:

10
297 296
0 0 1 0 1 0 1 0 1 1 0 1 0 0 1 1 1 0 0 0 0 0 0 1 1 1 0 1 0 0 1 1 1 0 0 0 1 1 1 1 1 0 0 1 1 0 1 1 1 0 0 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 0 0 0 1 0 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 1 1 0 0 0 1 1 0 1 1 1 1 1 1 1 0 0 0 1 1 0 1 1 1 1 0 1 1 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 0...

output:


result:


Test #13:

score: 0
Runtime Error

input:

10
297 299
1 0 1 0 0 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 0 1 1 0 0 0 0 0 0 1 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 1 1 1 0 0 1 0 0 0 0 0 0 0 1 1 1 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 1 1 1 0 0 1 1 0 1 0 0 0 1 1 1 1 0 1 0 1 0 0 0 1 0 1 0 0 0 0 0 1 0 1 1 1 1 0 0 0 0 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 1 1...

output:


result:


Test #14:

score: 0
Runtime Error

input:

10
298 299
0 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 1 1 0 1 1 1 0 1 1 0 0 0 1 0 0 0 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 0 0 0 0 1 1 1 0 1 0 1 1 1 0 0 0 1 0 0 1 0 0 1 1 0 1 0 1 0 0 0 0 1 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 1 0 0 1 0 1 1 0 0 1 1 0...

output:


result:


Test #15:

score: 0
Runtime Error

input:

10
298 296
0 1 1 1 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 1 0 1 0 1 0 0 0 1 0 1 1 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 0 1 1 1 0 0 0 1 1 1 0 0 1 0 1 0 1 1 0 0 1 1 0 1 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 1 0 1 1 1 1 0 0 1 0 1 0 0 1 1 1 1 0 1...

output:


result:


Test #16:

score: 0
Runtime Error

input:

10
295 299
3600561 469227 1519243 508870 2714139 2548515 3416122 1633507 1829918 1551817 3098121 1670950 2106466 1946727 1581396 3426393 1988045 2888135 2146489 1534631 2721599 3729764 456043 293501 882439 3099151 2941143 3610816 549774 1066237 3189705 2413286 2316602 3976215 3845403 862960 241887 2...

output:


result:


Test #17:

score: 0
Runtime Error

input:

10
298 297
1203979 2459461 1123626 2165742 593951 2361185 60882 1597698 966249 1407808 2665213 1585110 1730464 732707 2642476 54357 96750 3459440 500455 1509802 2084769 1885656 824649 1394960 3065480 1964072 626742 582644 617926 652074 1646286 250370 1154127 1955950 327344 753408 2005921 2832519 933...

output:


result:


Test #18:

score: 0
Runtime Error

input:

10
296 296
2917992 3146628 3606537 755096 2325656 3902232 2435726 2851482 3134088 1183312 3680091 2970485 3974463 2456731 3306154 400789 1137399 1266637 1849976 2126197 1039996 2867787 711979 2828033 1651264 3781772 1152035 2861694 2479767 1853717 886722 2972156 4583 903432 3364054 3947134 3871761 3...

output:


result:


Test #19:

score: 0
Runtime Error

input:

10
297 297
13391 712464 2974864 1439202 1447544 1413180 800048 597109 3349875 2034207 1467293 796338 2354278 171222 1066675 2532591 208592 123178 2912280 3309432 3409173 1029236 2315777 2135394 3355241 69077 3113692 2937527 2948148 1151724 1640840 870814 42569 2304251 726055 3017332 2049772 2646010 ...

output:


result:


Test #20:

score: 0
Runtime Error

input:

10
297 295
2251173 2102586 854138 210476 3746962 1050335 357886 1246625 2048656 3914401 2622120 2500826 3210040 3638713 646704 3538951 2675262 2202513 1600647 2451535 120429 782584 3574033 3344068 580591 2179489 3256587 684504 1805546 599720 3155847 2286982 2960267 502472 3365334 1420188 2393737 228...

output:


result: