Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
NTUCPC Speed Run! #1
比賽已結束,感謝大家的參與!
題目連結
IOICamp 2025 PreExam 進行中!
IOICamp 官網
、
PreExam 連結
程式解題社網站
程式解題社網站
上線了!
477 . 字母辨識
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
拉菲好可愛 >////<
迷子でもいい、迷子でも進め!
User's AC Ratio
75.0% (
3/4
)
Submission's AC Ratio
30.0% (
3
/
10
)
Tags
Show solution-related tags
ytp
ytp-junior
ytp-2024
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
13 8
##....##
##....##
##....##
########
########
...##...
...##...
...##...
...##...
...##...
...##...
...##...
...##...
Sample Output 1
copy
Y
Sample Input 2
copy
10 6
......
......
......
.#####
...#..
...#..
......
......
......
......
Sample Output 2
copy
T
Sample Input 3
copy
7 11
#######....
#######....
##...##....
##...##....
##...##....
###########
###########
Sample Output 3
copy
P
Sample Input 4
copy
11 7
##.....
##.....
##.....
##.....
#######
#######
##...##
##...##
##...##
#######
#######
Sample Output 4
copy
X
Sample Input 5
copy
14 26
..........................
..........##.........##...
.##....##.######..##.###..
.##....##.######..##..###.
.##....##.##......##...##.
.##....##.##...##.##...##.
.###..###.##..###.##..###.
..#######.######..######..
...###.##..####...####....
.......##.........##......
......##..........##......
....####..........##......
....###...........##......
..........................
Sample Output 5
copy
X
Hints
Problem Source
YTP 2024 國中組程式挑戰營 p10
Subtasks
No.
Testdata Range
Constraints
Score
1
0~4
範例測資
0
2
5~24
輸入中只會有包含字母 $\texttt{T}$ 或 $\texttt{P}$ 的海報,且所有的海報都可以被辨識出字母
6
3
5~34
輸入中所有的海報都可以被辨識出字母
6
4
0~100
無額外限制
13
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
1000
262144
65536
1
4
1
1000
262144
65536
1
4
2
1000
262144
65536
1
4
3
1000
262144
65536
1
4
4
1000
262144
65536
1
4
5
1000
262144
65536
2
3
4
6
1000
262144
65536
2
3
4
7
1000
262144
65536
2
3
4
8
1000
262144
65536
2
3
4
9
1000
262144
65536
2
3
4
10
1000
262144
65536
2
3
4
11
1000
262144
65536
2
3
4
12
1000
262144
65536
2
3
4
13
1000
262144
65536
2
3
4
14
1000
262144
65536
2
3
4
15
1000
262144
65536
2
3
4
16
1000
262144
65536
2
3
4
17
1000
262144
65536
2
3
4
18
1000
262144
65536
2
3
4
19
1000
262144
65536
2
3
4
20
1000
262144
65536
2
3
4
21
1000
262144
65536
2
3
4
22
1000
262144
65536
2
3
4
23
1000
262144
65536
2
3
4
24
1000
262144
65536
2
3
4
25
1000
262144
65536
3
4
26
1000
262144
65536
3
4
27
1000
262144
65536
3
4
28
1000
262144
65536
3
4
29
1000
262144
65536
3
4
30
1000
262144
65536
3
4
31
1000
262144
65536
3
4
32
1000
262144
65536
3
4
33
1000
262144
65536
3
4
34
1000
262144
65536
3
4
35
1000
262144
65536
4
36
1000
262144
65536
4
37
1000
262144
65536
4
38
1000
262144
65536
4
39
1000
262144
65536
4
40
1000
262144
65536
4
41
1000
262144
65536
4
42
1000
262144
65536
4
43
1000
262144
65536
4
44
1000
262144
65536
4
45
1000
262144
65536
4
46
1000
262144
65536
4
47
1000
262144
65536
4
48
1000
262144
65536
4
49
1000
262144
65536
4
50
1000
262144
65536
4
51
1000
262144
65536
4
52
1000
262144
65536
4
53
1000
262144
65536
4
54
1000
262144
65536
4
55
1000
262144
65536
4
56
1000
262144
65536
4
57
1000
262144
65536
4
58
1000
262144
65536
4
59
1000
262144
65536
4
60
1000
262144
65536
4
61
1000
262144
65536
4
62
1000
262144
65536
4
63
1000
262144
65536
4
64
1000
262144
65536
4
65
1000
262144
65536
4
66
1000
262144
65536
4
67
1000
262144
65536
4
68
1000
262144
65536
4
69
1000
262144
65536
4
70
1000
262144
65536
4
71
1000
262144
65536
4
72
1000
262144
65536
4
73
1000
262144
65536
4
74
1000
262144
65536
4
75
1000
262144
65536
4
76
1000
262144
65536
4
77
1000
262144
65536
4
78
1000
262144
65536
4
79
1000
262144
65536
4
80
1000
262144
65536
4
81
1000
262144
65536
4
82
1000
262144
65536
4
83
1000
262144
65536
4
84
1000
262144
65536
4
85
1000
262144
65536
4
86
1000
262144
65536
4
87
1000
262144
65536
4
88
1000
262144
65536
4
89
1000
262144
65536
4
90
1000
262144
65536
4
91
1000
262144
65536
4
92
1000
262144
65536
4
93
1000
262144
65536
4
94
1000
262144
65536
4
95
1000
262144
65536
4
96
1000
262144
65536
4
97
1000
262144
65536
4
98
1000
262144
65536
4
99
1000
262144
65536
4
100
1000
262144
65536
4
Submit
Back to Top