From 8e42657122f3e85131fadd2e27ae98d64a9f55b0 Mon Sep 17 00:00:00 2001 From: sa11k Date: Sat, 23 Jul 2022 22:12:27 +0900 Subject: [PATCH 1/2] Feat:Add solution of #118 --- src/BaekJoon/sa11k/7568/Main.java | 35 +++++++++++++++++++++++++++ src/BaekJoon/sa11k/9012/Main.java | 39 +++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 src/BaekJoon/sa11k/7568/Main.java create mode 100644 src/BaekJoon/sa11k/9012/Main.java diff --git a/src/BaekJoon/sa11k/7568/Main.java b/src/BaekJoon/sa11k/7568/Main.java new file mode 100644 index 0000000..6e419e0 --- /dev/null +++ b/src/BaekJoon/sa11k/7568/Main.java @@ -0,0 +1,35 @@ +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 N = Integer.parseInt(br.readLine()); + int[][] people = new int[N][N]; + int[] grades = new int[N]; + + for(int i = 0; i people[j][0] && people[i][1] > people[j][1]) grades[j]++; + } + } + + for(int grade : grades){ + System.out.print(grade+" "); + } + + br.close(); + } +} \ No newline at end of file diff --git a/src/BaekJoon/sa11k/9012/Main.java b/src/BaekJoon/sa11k/9012/Main.java new file mode 100644 index 0000000..fe54e3a --- /dev/null +++ b/src/BaekJoon/sa11k/9012/Main.java @@ -0,0 +1,39 @@ +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 N = Integer.parseInt(br.readLine()); + + for(int i = 0; i stack = new Stack<>(); + String result = "YES"; + + for(int j = 0; j Date: Sun, 24 Jul 2022 00:14:22 +0900 Subject: [PATCH 2/2] 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