Skip to content

Commit

Permalink
Feat:Add solution of #118
Browse files Browse the repository at this point in the history
  • Loading branch information
sa11k committed Jul 23, 2022
1 parent 2ec8208 commit a05b4e3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/BaekJoon/sa11k/10250/Main.java
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit a05b4e3

Please sign in to comment.