백준 10250번: ACM 호텔 #Python

ColorlessDia·2025년 3월 2일

algorithm/baekjoon

목록 보기
469/807
import sys

input = sys.stdin.readline

T = int(input())

for _ in range(T):
    H, W, N = map(int, input().split())

    floor = H if N % H == 0 else N % H
    room = N // H if N % H == 0 else (N // H) + 1

    print(f'{(floor * 100) + room}')

0개의 댓글