본문 바로가기
반응형

코딩테스트8

백준 :: 10871번 X보다 작은 수 - 자바(JAVA) import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.IOException;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer firstLine = new StringTokenizer(reader.readLine()); int N = Integer.parseInt(.. 2024. 8. 6.
[백준] 11021, 11022번 :: A+B - 7, A+B - 8 - 자바(JAVA) 11021번 import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); for (int i = 0; i  11022번 import java.io.*;public class Main { public.. 2024. 7. 26.
15552번 import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); for (int i = 0; i 2024. 7. 26.
25314 코딩은 체육과목입니다. 풀이 import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.IOException;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToken.. 2024. 7. 26.
25304 영수증 나의 풀이import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.IOException;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int X = Integer.parseInt(br.readLine()); // 영수증에 적힌 총 금액 int N = Integer.parseInt(br.readLin.. 2024. 7. 24.
백준 8393번 import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.IOException;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToken()).. 2024. 7. 24.
반응형