From a05b4e3c1b374c503bebf5e948ebfa382bf155f6 Mon Sep 17 00:00:00 2001 From: sa11k Date: Sun, 24 Jul 2022 00:14:22 +0900 Subject: [PATCH] Feat:Add solution of #118 --- src/BaekJoon/sa11k/10250/Main.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/BaekJoon/sa11k/10250/Main.java diff --git a/src/BaekJoon/sa11k/10250/Main.java b/src/BaekJoon/sa11k/10250/Main.java new file mode 100644 index 0000000..4d36fa0 --- /dev/null +++ b/src/BaekJoon/sa11k/10250/Main.java @@ -0,0 +1,22 @@ +import java.io.*; +import java.util.*; + +class Main { + + public static void main(String[] args) throws Exception { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + int T = Integer.parseInt(br.readLine()); + + for(int tc = 1; tc<=T; tc++){ + StringTokenizer st = new StringTokenizer(br.readLine(), " "); + int H = Integer.parseInt(st.nextToken()); + int W = Integer.parseInt(st.nextToken()); + int N = Integer.parseInt(st.nextToken()); + + if(N % H == 0) System.out.println((H * 100) + N / H); + else System.out.println(((N % H) * 100) + ((N / H) + 1)); + } + + br.close(); + } +} \ No newline at end of file