자바백준10 [백준/JAVA] 15552번 빠른 A+B import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.IOException;import java.io.InputStreamReader;import java.io.OutputStreamWriter;import java.util.Stack; public class Main {public static void main(String args[]) throws IOException {BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System... 2020. 7. 20. [백준/JAVA] 10950번 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. import java.util.Scanner; public class Main {public static void main(String args[]) {Scanner in = new Scanner(System.in);int input = in.nextInt();int input2,input3;for (int i = 0; i < input; i++) {input2 = in.nextInt();input3 = in.nextInt();System.out.println(input2 + input3);}}} 더 많은 백준 코드가 보고 싶다면 ? https://chuinggun.tistory.com/category/%EB%B0%B1%EC%A4%80 2020. 7. 20. [백준/JAVA] 2739번 구구단 import java.util.Scanner; public class Main {public static void main(String args[]) {Scanner in = new Scanner(System.in);int input = in.nextInt();for (int i = 1; i < 10; i++) {System.out.println(input + " * " + i + " = " + input * i);}}}더 많은 백준 코드가 보고 싶다면 ? https://chuinggun.tistory.com/category/%EB%B0%B1%EC%A4%80 2020. 7. 20. [백준/JAVA] 2884번 알람시계 import java.util.Scanner; public class Main {public static void main(String args[]) {Scanner in = new Scanner(System.in);int result1, result2, hour, minutes, fix = 60,fix2 = 24; hour = in.nextInt();minutes = in.nextInt();minutes = minutes - 45;if (minutes < 0) {result2 = fix + minutes;result1 = --hour;if(result1 < 0 ) {result1 = result1 + fix2;}} else {result1 = hour;result2 = minutes;}System.ou.. 2020. 7. 20. 이전 1 2 3 다음