Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
NTUCPC Speed Run! #1
比賽已結束,感謝大家的參與!
題目連結
IOICamp 2025 PreExam 進行中!
IOICamp 官網
、
PreExam 連結
程式解題社網站
程式解題社網站
上線了!
313 . Rectangles
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
Caido
主唱太拼命了
User's AC Ratio
72.7% (
8/11
)
Submission's AC Ratio
38.5% (
10
/
26
)
Tags
Show solution-related tags
ytp
ytp-junior
ytp-2023
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
4
...#
#..#
..#.
.#.#
Sample Output 1
copy
21
Sample Input 2
copy
5
.#.#.
#...#
.##.#
###..
..#.#
Sample Output 2
copy
25
Hints
Problem Source
YTP 2023 國中組程式挑戰營 p9
Subtasks
No.
Testdata Range
Constraints
Score
1
0~1
範例測資
0
2
0~8
$1 \leq n \leq 50$
2
3
0~19
$1 \leq n \leq 200$
3
4
0~31
無額外限制
15
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
3000
524288
65536
1
2
3
4
1
3000
524288
65536
1
2
3
4
2
3000
524288
65536
2
3
4
3
3000
524288
65536
2
3
4
4
3000
524288
65536
2
3
4
5
3000
524288
65536
2
3
4
6
3000
524288
65536
2
3
4
7
3000
524288
65536
2
3
4
8
3000
524288
65536
2
3
4
9
3000
524288
65536
3
4
10
3000
524288
65536
3
4
11
3000
524288
65536
3
4
12
3000
524288
65536
3
4
13
3000
524288
65536
3
4
14
3000
524288
65536
3
4
15
3000
524288
65536
3
4
16
3000
524288
65536
3
4
17
3000
524288
65536
3
4
18
3000
524288
65536
3
4
19
3000
524288
65536
3
4
20
3000
524288
65536
4
21
3000
524288
65536
4
22
3000
524288
65536
4
23
3000
524288
65536
4
24
3000
524288
65536
4
25
3000
524288
65536
4
26
3000
524288
65536
4
27
3000
524288
65536
4
28
3000
524288
65536
4
29
3000
524288
65536
4
30
3000
524288
65536
4
31
3000
524288
65536
4
Submit
Back to Top