<filename>Python_Codes_for_BJ/stage08 규칙 찾기/ACM 호텔.py
solution = lambda H, W, N: ((N-1)%H+1)*100+(N//H)+(1 if N%H else 0)
for _ in range(int(input())):
	H, W, N = map(int,input().split())
	print(solution(H,W,N))
<filename>Python_Codes_for_BJ/stage08 규칙 찾기/ACM 호텔.py
solution = lambda H, W, N: ((N-1)%H+1)*100+(N//H)+(1 if N%H else 0)
for _ in range(int(input())):
	H, W, N = map(int,input().split())
	print(solution(H,W,N))