import math
i=int(input())
for x in range(i):
h,w,n=map(int,input().split())
b=str(math.ceil(n/h))
a=n-(h*(math.ceil(n/h)-1))
zero_b=b.zfill(2)
print('%s%s'%(a,zero_b))
'알고리즘 > 백준' 카테고리의 다른 글
백준-10699번(오늘 날짜)-python3 (0) | 2023.11.30 |
---|---|
백준-10430번(나머지)-python3 (0) | 2023.11.30 |
백준-10214번(Baseball)-python3 (0) | 2023.11.30 |
백준-10172번(개)-python3 (0) | 2023.11.30 |
백준-10171번(고양이)-python3 (0) | 2023.11.30 |