import sys
T = int(sys.stdin.readline())
for _ in range(T):
H, W, N = map(int, sys.stdin.readline().rstrip().split())
if N % H ==0:
ans = H * 100 + N // H
else:
ans = (N % H) * 100 + N // H + 1
print(ans)
t = int(input())
for i in range(t):
h, w, n = map(int, input().split())
num = n//h + 1
floor = n % h
if n % h == 0: # h์ ๋ฐฐ์์ด๋ฉด,
num = n//h
floor = h
print(f'{floor*100+num}')
๋ณ๊ฑฐ ์๋์ง๋ง, else๋ฅผ ์์ฐ๊ณ ์กฐ๊ฑด 2๊ฐ๋ ๋๋ ์ ์๋ค๋ ๊ฑฐ ๊ธฐ์ตํ์
'๐ Python > ๋ฐฑ์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[10757]ํฐ ์ A+B (0) | 2022.03.17 |
---|---|
[1193]๋ถ์์ฐพ๊ธฐ (0) | 2022.03.16 |
[2292]๋ฒ์ง (0) | 2022.03.14 |
[1712] ์์ต๋ถ๊ธฐ์ (0) | 2022.03.13 |
[1316]๊ทธ๋ฃน ๋จ์ด ์ฒด์ปค (0) | 2022.03.13 |