https://www.acmicpc.net/problem/26560
1
2
3
4
5
6
7
8
9
10
11
12
13
|
def sol(s):
if s[-1] != '.':
return s + '.'
else:
return s
if __name__ == '__main__':
n = int(input())
for _ in range(n):
s = input()
print(sol(s))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
codeforces 133A - HQ9+ (0) | 2023.01.25 |
---|---|
codeforces 158A - Next Round (0) | 2023.01.25 |
leetcode 1684. Count the Number of Consistent Strings (2) | 2023.01.22 |
leetcode 58. Length of Last Word (0) | 2023.01.21 |
leetcode 2404. Most Frequent Even Element (0) | 2023.01.19 |
댓글