본문 바로가기
728x90
반응형

알고리즘/알고리즘 기초문제(백준-입출력)23

[백준]10952_A+B - 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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; String str; while (true) { st = new Stri.. 2022. 2. 14.
[백준]2557_A+B - 3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int T = Integer.p.. 2022. 2. 14.
[백준]2558_A+B - 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int A=Integer.parseInt(br.readLine()); int B=Integer.parseInt(br.readLine()); System.out.pri.. 2022. 2. 14.
[백준]1000_A+B 1 2 3 4 5 6 7 8 9 10 11 12 13 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A=sc.nextInt(); int B=sc.nextInt(); System.out.println(A+B); } } Colored by Color Scripter cs 2022. 2. 14.
[백준]2557_Hello World 1 2 3 4 5 6 public class Main { public static void main(String[] args) { System.out.println("Hello World!"); } } Colored by Color Scripter cs 2022. 2. 14.
728x90
반응형