5 lines
199 B
Python
5 lines
199 B
Python
for _ in range(int(input())) :
|
|
h, w, n = map(int, input().split())
|
|
floor = h if n%h==0 else n%h
|
|
number = n//h if n%h==0 else n//h+1
|
|
print(f"{floor}{'0' if number<10 else ''}{number}") |