QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#805841#2883. 方格游戏asdfghjkl #TL 1ms3736kbC++205.0kb2024-12-08 18:56:262024-12-08 18:56:26

詳細信息

Test #1:

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

input:

1 1 0

output:

0

result:

ok single line: '0'

Test #2:

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

input:

1002 1002 20
637 649 717 726
191 198 99 115
522 528 289 308
22 39 994 995
567 570 875 877
685 688 928 940
836 847 805 814
128 142 117 125
735 750 144 150
431 447 347 352
392 406 196 215
289 302 831 832
187 187 921 921
110 116 135 136
462 478 738 747
235 241 452 452
610 626 900 919
259 276 945 947
90...

output:

109876135

result:

ok single line: '109876135'

Test #3:

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

input:

1002 1002 20
637 649 717 726
191 198 99 115
522 528 289 308
22 39 994 995
567 570 875 877
685 688 928 940
836 847 805 814
128 142 117 125
735 750 144 150
431 447 347 352
392 406 196 215
289 302 831 832
187 187 921 921
110 116 135 136
462 478 738 747
235 241 452 452
610 626 900 919
259 276 945 947
90...

output:

109876135

result:

ok single line: '109876135'

Test #4:

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

input:

1002 1002 20
637 649 717 726
191 198 99 115
522 528 289 308
22 39 994 995
567 570 875 877
685 688 928 940
836 847 805 814
128 142 117 125
735 750 144 150
431 447 347 352
392 406 196 215
289 302 831 832
187 187 921 921
110 116 135 136
462 478 738 747
235 241 452 452
610 626 900 919
259 276 945 947
90...

output:

109876135

result:

ok single line: '109876135'

Test #5:

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

input:

1002 1002 20
637 649 717 726
191 198 99 115
522 528 289 308
22 39 994 995
567 570 875 877
685 688 928 940
836 847 805 814
128 142 117 125
735 750 144 150
431 447 347 352
392 406 196 215
289 302 831 832
187 187 921 921
110 116 135 136
462 478 738 747
235 241 452 452
610 626 900 919
259 276 945 947
90...

output:

109876135

result:

ok single line: '109876135'

Test #6:

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

input:

1002 1002 20
637 649 717 726
191 198 99 115
522 528 289 308
22 39 994 995
567 570 875 877
685 688 928 940
836 847 805 814
128 142 117 125
735 750 144 150
431 447 347 352
392 406 196 215
289 302 831 832
187 187 921 921
110 116 135 136
462 478 738 747
235 241 452 452
610 626 900 919
259 276 945 947
90...

output:

109876135

result:

ok single line: '109876135'

Test #7:

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

input:

1002 1002 20
637 649 717 726
191 198 99 115
522 528 289 308
22 39 994 995
567 570 875 877
685 688 928 940
836 847 805 814
128 142 117 125
735 750 144 150
431 447 347 352
392 406 196 215
289 302 831 832
187 187 921 921
110 116 135 136
462 478 738 747
235 241 452 452
610 626 900 919
259 276 945 947
90...

output:

109876135

result:

ok single line: '109876135'

Test #8:

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

input:

100002 100002 1000
97499 97504 44086 44087
79707 79712 68614 68616
42399 42403 12598 12603
79409 79410 51077 51078
13252 13256 96759 96764
57068 57071 4881 4883
706 707 77982 77982
92545 92550 14414 14417
48907 48910 71474 71475
5508 5512 4481 4486
19126 19131 20982 20987
17420 17424 18191 18191
296...

output:

46710111

result:

ok single line: '46710111'

Test #9:

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

input:

100002 100002 1000
97499 97504 44086 44087
79707 79712 68614 68616
42399 42403 12598 12603
79409 79410 51077 51078
13252 13256 96759 96764
57068 57071 4881 4883
706 707 77982 77982
92545 92550 14414 14417
48907 48910 71474 71475
5508 5512 4481 4486
19126 19131 20982 20987
17420 17424 18191 18191
296...

output:

46710111

result:

ok single line: '46710111'

Test #10:

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

input:

100002 100002 1000
6552 6553 42573 42577
96951 96956 61320 61324
91224 91227 74799 74799
59748 59753 80262 80262
97211 97211 48680 48684
76561 76563 69153 69155
94316 94321 74610 74612
935 936 42449 42451
56881 56884 76838 76838
26510 26510 11119 11124
90805 90810 51868 51871
1201 1201 52116 52119
9...

output:

440963985

result:

ok single line: '440963985'

Test #11:

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

input:

100002 100002 1000
6552 6553 42573 42577
96951 96956 61320 61324
91224 91227 74799 74799
59748 59753 80262 80262
97211 97211 48680 48684
76561 76563 69153 69155
94316 94321 74610 74612
935 936 42449 42451
56881 56884 76838 76838
26510 26510 11119 11124
90805 90810 51868 51871
1201 1201 52116 52119
9...

output:

440963985

result:

ok single line: '440963985'

Test #12:

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

input:

1 4 0

output:

10

result:

ok single line: '10'

Test #13:

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

input:

100002 100002 1000
6552 6553 42573 42577
96951 96956 61320 61324
91224 91227 74799 74799
59748 59753 80262 80262
97211 97211 48680 48684
76561 76563 69153 69155
94316 94321 74610 74612
935 936 42449 42451
56881 56884 76838 76838
26510 26510 11119 11124
90805 90810 51868 51871
1201 1201 52116 52119
9...

output:

440963985

result:

ok single line: '440963985'

Test #14:

score: -100
Time Limit Exceeded

input:

900000002 900000002 100000
51820383 51820680 219305012 219305288
774529390 774529437 365397993 365398958
622751423 622751865 413569643 413569853
129537839 129538296 608508595 608508860
78694638 78695037 567031881 567032631
317772034 317772683 842482639 842483290
852808645 852809278 328365943 3283662...

output:


result: