[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 c1 = '#' 8 c2 = '.' 9 for i in range(h): 10 for j in range(w): 11 if j % 2 == 0: 12 print(c1, end='') 13 else: 14 print(c2, end='') 15 print() 16 c1, c2 = c2, c1 17 print()