반응형
t = int(input())
for i in range(t):
h,w,n=map(int,input().split())
x=1
y=1
p = n//h
q = n%h
if q==0:
if p < 10:
print(str(h)+'0'+str(p))
else:
print(str(h)+str(p))
else:
if p < 9:
print(str(q)+'0'+str(p+1))
else:
print(str(q)+str(p+1))
반응형
'Algorithm > Baekjoon' 카테고리의 다른 글
2839 (0) | 2021.05.08 |
---|---|
2775 (0) | 2021.05.06 |
2869 (0) | 2021.05.05 |
1193 (0) | 2021.05.05 |
2292 (0) | 2021.05.05 |