Files
CodeObject/zeta/py/completed/10250.py
2025-05-07 04:44:30 +09:00

4 lines
118 B
Python

T = int(input())
for i in range(T):
H, W, N = map(int, input().split())
print("%d%02d"%((N-1)%H+1,(N-1)//H+1))