[READ-ONLY] Mirror of https://github.com/shuuji3/competitive-programming. 馃洬 Codes submitted to competitive programming platforms
aizu-online-jadge aoj atcoder hackerrank leetcode
0

Configure Feed

Select the types of activity you want to include in your feed.

1while True: 2 h, w = map(int, input().split()) 3 4 if h == 0 and w == 0: 5 break 6 7 for i in range(h): 8 if i == 0 or i == h-1: 9 print('#' * w) 10 else: 11 print('#', end='') 12 print('.' * (w-2), end='') 13 print('#') 14 print()