분류 전체보기(26)
-
[백준/자바] 11022 A+B -8
1. 나의 풀이 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; 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..
2022.07.08 -
[백준/자바] 8393 합
1. 나의 풀이 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int result = 0; for(int i=1;i
2022.07.05 -
[백준/자바] 10950 A+B
1. 나의 풀이 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int i=0;i
2022.07.05 -
[백준/자바] 2739 구구단
1. 내가 작성한 풀이 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); for(int i=1; i
2022.07.05 -
[백준/자바] 2480 주사위 세개
1. 내가 작성한 풀이(정답) 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(); int c = sc.nextInt(); int max = 0; if(a == b && b == c) { System.out.println(10000 + a*1000); }else if(a != b && b != c && a != c) { if(a > b && a > c) { max = a; }else if(b>a && b>c) { max = b; }else if(c>a && c>..
2022.07.05 -
[백준/자바] 10171번: 고양이
public class Main{ public static void main(String[] args) { System.out.println("\\ /\\"); System.out.println(" ) ( ')"); System.out.println("( / )"); System.out.println(" \\(__)|"); } } 백슬래시는 \\ 두 개를 넣어야 하나로 출력된다
2022.06.30