๋ฐฑ์ค€

ยทpython
https://www.acmicpc.net/problem/2563 2563๋ฒˆ: ์ƒ‰์ข…์ด ๊ฐ€๋กœ, ์„ธ๋กœ์˜ ํฌ๊ธฐ๊ฐ€ ๊ฐ๊ฐ 100์ธ ์ •์‚ฌ๊ฐํ˜• ๋ชจ์–‘์˜ ํฐ์ƒ‰ ๋„ํ™”์ง€๊ฐ€ ์žˆ๋‹ค. ์ด ๋„ํ™”์ง€ ์œ„์— ๊ฐ€๋กœ, ์„ธ๋กœ์˜ ํฌ๊ธฐ๊ฐ€ ๊ฐ๊ฐ 10์ธ ์ •์‚ฌ๊ฐํ˜• ๋ชจ์–‘์˜ ๊ฒ€์€์ƒ‰ ์ƒ‰์ข…์ด๋ฅผ ์ƒ‰์ข…์ด์˜ ๋ณ€๊ณผ ๋„ํ™”์ง€์˜ ๋ณ€์ด ํ‰ํ–‰ํ•˜๋„๋ก www.acmicpc.net ์ฝ”๋“œ paper_list = [[0 for i in range(100)] for j in range(100)] times = int(input()) for _ in range(times): x, y = map(int, input().split()) for row in range(x, x+10): for col in range(y, y+10): paper_list[row][col] = 1 result ..
ยทpython
https://www.acmicpc.net/problem/10789 10789๋ฒˆ: ๊ฐ€์ƒ ํ‚ค๋ณด๋“œ ์ž…๋ ฅ ์ž…๋ ฅ์˜ ์ฒซ ๋ฒˆ์งธ ์ค„(ํ–‰)์—๋Š” ๋‘ ๊ฐœ์˜ ์ •์ˆ˜ r๊ณผ c (1 ≤ r, c ≤ 50)๊ฐ€ ํฌํ•จ๋˜์–ด ๊ฐ€์ƒ ํ‚ค๋ณด๋“œ ๊ฒฉ์ž์˜ ํ–‰๊ณผ ์—ด ์ˆ˜๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๊ฐ€์ƒ ํ‚ค๋ณด๋“œ๋Š” ๋‹ค์Œ r ํ–‰์— ํ‘œ์‹œ๋˜๋ฉฐ ๊ฐ ํ–‰์—๋Š” c ๋ฌธ์ž๊ฐ€ ๋“ค์–ด ์žˆ์Šต๋‹ˆ๋‹ค. www.acmicpc.net ์ฝ”๋“œ my_list = [] for _ in range(5): my_list.append(list(input())) for row in range(15): for col in range(5): try: print(my_list[col][row], end="") except: continue ์„ค๋ช… 1. my_list์— ์ž…๋ ฅ๊ฐ’์„ ํ•œ์ค„ ์”ฉ list๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ์ €์žฅํ•œ๋‹ค. (2..
Chan Lee
'๋ฐฑ์ค€' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก