package ACMhotel;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int cnt = 0;
cnt = scan.nextInt();
int[] roomArr = new int[cnt];
for (int i = 0; i < cnt; i++) {
int H = 0, W = 0, N = 0;
H = scan.nextInt();
W = scan.nextInt();
N = scan.nextInt();
int room;
room = (N - H * (N / H)) * 100 + (N / H) + 1;
roomArr[i] = room;
}
for (int i = 0; i < cnt; i++) {
System.out.println(roomArr[i]);
}
}
}
'알고리즘' 카테고리의 다른 글
[BAEKJOON 10809번] (Java) 알파벳 찾기 (0) | 2020.06.18 |
---|---|
[BAEKJOON 2292번] (Java) 벌집 (0) | 2020.06.18 |
[BAEKJOON 1065번] (Java) 한수 (0) | 2020.06.18 |
[BAEKJOON 2941번] (Java) 크로아티아 알파벳 (0) | 2020.06.15 |
[BAEKJOON 2798번] (Java) 블랙잭 (0) | 2020.06.15 |