TopCoder

asuka
酸欠少女

User's AC Ratio

93.3% (14/15)

Submission's AC Ratio

46.8% (22/47)

Tags

Description

題目 PDF 檔在這裡

註:因為顯示問題範例測資三在 judge 上看起來是錯誤的,但實際上與題本一樣,複製鈕是可以正常運作的。

Input Format

Output Format

Sample Input 1

4 1
X

X
X

Sample Output 1

2

Sample Input 2

6 4
XX
X X
X X
XX
X X
X X

Sample Output 2

7

Sample Input 3

6 4
XX
X X
XX
X X
XX
X X

Sample Output 3

12

Hints

Problem Source

YTP 2020 高中組初賽 p3

Subtasks

No. Testdata Range Constraints Score
1 0~2 範例測資 0
2 0~10 無額外限制 10

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 262144 65536 1 2
1 1000 262144 65536 1 2
2 1000 262144 65536 1 2
3 1000 262144 65536 2
4 1000 262144 65536 2
5 1000 262144 65536 2
6 1000 262144 65536 2
7 1000 262144 65536 2
8 1000 262144 65536 2
9 1000 262144 65536 2
10 1000 262144 65536 2