QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#770903#5162. 种花ZhangYiDe1 107ms12296kbC++233.2kb2024-11-22 01:42:072024-11-22 01:42:09

詳細信息


Pretests


Final Tests

Test #1:

score: 1
Accepted
time: 16ms
memory: 12072kb

input:

1 1
998 1000 0 0
0000100000100001000000000000011100000000010100100010000001100000000100011010000000011010001000100010000010001000011110010000000000010100000000001000000010000000100001000000101000010010010000000010010010000010001000010000000010000100001001001111010000000000010000000000100001111010011...

output:

0 0

result:

ok single line: '0 0'

Test #2:

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

input:

3 2
3 2 1 1
00
00
00
3 2 1 1
00
01
00
3 2 1 1
00
00
01

output:

8 2
3 1
6 2

result:

wrong answer 1st lines differ - expected: '1 0', found: '8 2'

Test #3:

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

input:

5 3
4 2 1 1
00
00
00
00
4 2 1 1
00
01
00
00
4 2 1 1
00
00
01
00
4 2 1 1
00
00
00
01
4 2 1 1
00
00
00
10

output:

18 8
10 3
10 6
15 8
8 2

result:

wrong answer 1st lines differ - expected: '3 1', found: '18 8'

Test #4:

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

input:

5 4
997 2 1 1
10
00
00
00
00
00
00
00
00
00
00
10
00
00
10
00
00
00
00
00
00
00
00
00
00
01
00
00
00
00
00
00
00
00
10
00
00
00
01
11
00
00
00
00
00
00
00
00
10
00
00
00
00
00
10
01
00
00
00
00
00
00
00
01
01
00
00
00
10
00
00
00
00
00
00
00
00
00
10
00
00
00
00
00
00
00
00
00
10
00
00
00
00
00
00
0...

output:

23655 21127
6820 5161
4526 3311
1383 836
544 316

result:

wrong answer 1st lines differ - expected: '5301 38550', found: '23655 21127'

Test #5:

score: 0
Wrong Answer
time: 72ms
memory: 12296kb

input:

5 5
999 998 1 1
00100100100100101100100100100100100100100100110100110100101100100100110100100100100101100100110100100100101100101100101100100100100100100100101100101100110100100100110100100100100100100110100101110100101110100100110100100100100101100100100100100100101100100100100100100100100100100100...

output:

8722319 7846121
2794555 2234895
1122529 785736
472949 283282
198099 98737

result:

wrong answer 1st lines differ - expected: '1952124 17488577', found: '8722319 7846121'

Test #6:

score: 0
Wrong Answer
time: 96ms
memory: 12188kb

input:

5 6
995 1000 1 1
0000000000100101000000000000000000001010000100000000000000000100100000000001000000000000000000100000000101000000000000000000000000000000000000000000000001000000000000000100100000001000000000010000000000000000000000000100000000100000001011000100000000110000000000000000000000000000000...

output:

82637415 15732737
13723105 2520584
3855350 659537
1269229 198174
439788 62631

result:

wrong answer 1st lines differ - expected: '14235129 0', found: '82637415 15732737'

Test #7:

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

input:

5 7
10 10 1 1
0000000000
0000000100
0000100000
0000000000
0000000000
0000000000
0000000001
0000000000
0010000001
0000000000
9 10 1 1
1000000000
0000100000
0000010100
0001000001
0000000000
1001000001
0111010011
0000000100
0100001000
9 10 1 1
1100000001
0101100010
0010010000
0111010110
1001000110
1110...

output:

15197 12190
1678 986
113 45
165 79
23 7

result:

wrong answer 1st lines differ - expected: '5890 12768', found: '15197 12190'

Test #8:

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

input:

5 8
20 18 1 1
010010000010000000
000000000010000110
000000101000000000
000000000000001000
000000000000000000
000000010000000000
010000000010100000
000100000100000001
000000000000001010
000000000100000000
000000100000000001
000001000000100000
000000000100001010
100000000000000000
000000000000000100
0...

output:

89211 74976
31309 23310
1857 921
903 448
423 216

result:

wrong answer 1st lines differ - expected: '32999 126558', found: '89211 74976'

Test #9:

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

input:

5 9
28 29 1 1
01000000000001000000000000100
00001000010000000000010000001
00000000000000000000000000001
00000100000000100001100100100
00001110100010100011000000000
00000000000000010000100010010
00001000000000000000000000000
00000000000000000010000000000
01000000000010000001001000010
0000100000001010...

output:

309871 266726
44179 29907
16421 11724
3111 1784
1124 476

result:

wrong answer 1st lines differ - expected: '117502 565585', found: '309871 266726'

Test #10:

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

input:

5 10
48 50 1 1
01001000001000001000000000001000010000000000000000
00000000000000100000100101000000000000000001000000
00001000000100000100000000110000000000000000000000
00000000000000000000000000000001000100000000001001
00100000000000000000000100010000000010000000000100
001000000000000100000000101000...

output:

2139543 1906527
255287 201118
29790 18264
11099 6894
3937 1882

result:

wrong answer 1st lines differ - expected: '847186 6581666', found: '2139543 1906527'

Test #11:

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

input:

5 11
95 90 1 1
001100000100000011000000000000000100000000000001000000000000000100000010000000000000000000
000000000000000000000000000000100000000000000000000100000000000000000000100000000010000000
000000000100000000011000000010001000000000000000000001100000010000000000100001000010000000
000000000000...

output:

8327434 7406628
1014100 805900
179180 123827
51618 31115
14637 6211

result:

wrong answer 1st lines differ - expected: '3308449 27745538', found: '8327434 7406628'

Test #12:

score: 0
Wrong Answer
time: 4ms
memory: 3984kb

input:

5 12
187 184 1 1
0000000010101000000010000000000000100001000000000000000001000000010000000000000100100000000100000000010000000000000000100000000000010000010000000000000010000001000000100000000101000000
00000000000000000000000000000000000000010000000100000100000000000000000000000000000001010000000010...

output:

45002612 40242648
3898376 3074630
905390 634513
222584 132751
59968 30515

result:

wrong answer 1st lines differ - expected: '18087075 150234004', found: '45002612 40242648'

Test #13:

score: 0
Wrong Answer
time: 8ms
memory: 4020kb

input:

5 13
271 300 1 1
0000000100000010000000100000000110000000000100000001001000100100000000000000100001000100000001001000000000000000000000001000000000000000010100000000000000000000000100000000010000000000000000000000000001001000000000010000000000010000000001000000000000000000000010000000000010000000000...

output:

104500051 93382960
9522571 7536265
1909357 1338678
488570 290468
140208 70828

result:

wrong answer 1st lines differ - expected: '42365220 358193357', found: '104500051 93382960'

Test #14:

score: 0
Wrong Answer
time: 20ms
memory: 5272kb

input:

5 14
500 476 1 1
0000000000000000001110000000010001000000000000000010000000000100000000000000100000000000001000000001000000000000100000001000001001101000000001000000000101000000000010000001100100000100000010100000000000000100100000000000000000001011000000000000011000000000000000000000000000010100001...

output:

327006586 293691782
30418132 24250994
5699287 3990996
1469305 882839
357065 177389

result:

wrong answer 1st lines differ - expected: '132646140 185264487', found: '327006586 293691782'

Test #15:

score: 0
Wrong Answer
time: 94ms
memory: 12204kb

input:

5 15
995 999 1 0
0100000000000000000010000000000000000001000000000000000000000110000100000000000000000000000100000000000000000000001000000000000100000000100000000010000000010010000000000010000100100110000010000000000000000100000100000000000000001000010100000000000000000000000000010000000001000000000...

output:

401870773 0
123489582 0
23974707 0
6071752 0
1746895 0

result:

wrong answer 1st lines differ - expected: '569370923 0', found: '401870773 0'

Test #16:

score: 0
Wrong Answer
time: 107ms
memory: 12136kb

input:

5 16
1000 998 1 1
010001000000000101000000100101000000000000000000100000000000000000000100000110010010000000100000000100000000000000000001000000000001000000010000000010000100000011000000000000000000010000000000000100000100000001000000010000000000000000000000000000000000000000000000000111001000000000...

output:

417443472 274817560
122104249 97390406
24191668 16941279
6063597 3635656
1723934 858119

result:

wrong answer 1st lines differ - expected: '575874014 131845186', found: '417443472 274817560'