1. Problem
2. My Solution
import sys
test_n = int(sys.stdin.readline().strip())
for i in range(test_n):
h,w,n = map(int,sys.stdin.readline().strip().split())
w_num, h_num =divmod(n,h)
if h_num == 0:
print(f"{h}{w_num:02d}")
else:
print(f"{h_num}{w_num+1:02d}")
3. Learned
1. Problem
2. My Solution
import sys
test_n = int(sys.stdin.readline().strip())
for i in range(test_n):
k = int(sys.stdin.readline().strip())
n = int(sys.stdin.readline().strip())
room = [list(range(1,15))] # 0층 주민 수
for j in range(k): # k = 1, 1층을 지정하면 아래에서 j = 0층 리스트로 계산
room.append([sum(room[j][0:q]) for q in range(1,15)])
print(room[k][n-1])
3. Learned