백준 10250 #10250 t = int(input()) for i in range(t): h,w,n = map(int,input().split()) if (n%h) == 0 : x = n//h y = h print(y*100+x) else : x = n//h + 1 y = n%h print(y*100+x) 생각보다 간단했지만 구현하다가 딴 길로 새서 시간이 좀 걸렸다. 여기서 포인트는 if (n%h) == 0 일 때를 따로 생각해주어야한다. Deep Learning/Algorithm 2022.03.24