Baekjoon Case

[파이썬 / 백준 10250번] ACM 호텔

Scarlett_C 2021. 11. 15. 10:52
728x90

https://www.acmicpc.net/problem/10250

728x90
T=int(input())
for i in range(T):
    H,W,N=map(int,input().split())
    floor=N%H
    Ho=N//H+1
    if floor==0: floor=H;Ho-=1
    print(floor*100+Ho)
728x90