분류 전체보기
-
백준 18108 JAVAETC/Algorithm 2023. 5. 19. 23:19
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int parseInt = Integer.parseInt(br.readLine()); bw.write(String.valueOf(parseInt-543)); bw.flush(); } }
-
백준 11022 JAVAETC/Algorithm 2023. 5. 19. 23:18
import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int t = Integer.parseInt(br.readLine()); StringTokenizer st; for (int i = 0; i < t; i++) { st = new StringTokenizer(..
-
백준 11021 JAVAETC/Algorithm 2023. 5. 19. 23:17
import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int t = Integer.parseInt(br.readLine()); StringTokenizer st; for (int i = 0; i < t; i++) { st = new StringTokenizer(..
-
백준 10988 JAVAETC/Algorithm 2023. 5. 19. 23:16
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringBuilder sb = new StringBuilder(br.readLine()); int result = sb.toString().equals(sb.reverse().toString()) ? 1 : 0; bw.write(String.valueOf(resul..
-
백준 10926 JAVAETC/Algorithm 2023. 5. 19. 23:16
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String n = br.readLine(); bw.write(n+"??!"); bw.flush(); } }
-
백준 10813 JAVAETC/Algorithm 2023. 5. 19. 23:15
import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringTokenizer st; st = new StringTokenizer(br.readLine(), " "); int n = Integer.parseInt(st.nextToken()); int m = ..
-
백준 10811 JAVAETC/Algorithm 2023. 5. 19. 23:14
import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringTokenizer st; st = new StringTokenizer(br.readLine(), " "); int n = Integer.parseInt(st.nextToken()); int m = ..
-
백준 10810 JAVAETC/Algorithm 2023. 5. 19. 23:13
import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringTokenizer st; st = new StringTokenizer(br.readLine(), " "); int n = Integer.parseInt(st.nextToken()); int m = ..