[백준] 10172번 public class Main { public static void main(String[] args) { System.out.println("|\\_/|"); System.out.println("|q p| /}"); System.out.println("( 0 )\"\"\"\\"); System.out.println("|\"^\"` |"); System.out.println("||_/=\\\\__|"); } } Playground/자바문제집 2022.12.24
[백준] 10171번 public class Main { public static void main(String[] args) { System.out.println("\\ /\\"); System.out.println(" ) ( ')"); System.out.println("( / )"); System.out.println(" \\(__)|"); } } Playground/자바문제집 2022.12.23
[백준] 10430번 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(); System.out.println((A+B)%C); System.out.println((A%C+B%C)%C); System.out.println((A*B)%C); System.out.println((A%C*B%C)%C); } } Playground/자바문제집 2022.12.23
[백준] 3003번 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int king = 1; int queen = 1; int rook = 2; int bishop = 2; int knight = 2; int pawn = 8; king = king - sc.nextInt(); queen = queen - sc.nextInt(); rook = rook - sc.nextInt(); bishop = bishop - sc.nextInt(); knight = knight - sc.nextInt(); pawn = pawn - sc.nextInt(); System... Playground/자바문제집 2022.12.23
[백준] 18108번 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(sc.nextInt()-543); } } Playground/자바문제집 2022.12.23
[백준] 10926번 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(sc.next() + "??!"); } } Playground/자바문제집 2022.12.23
[백준] 10869번 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int A, B; A = in.nextInt(); B = in.nextInt(); System.out.println(A + B); System.out.println(A - B); System.out.println(A * B); System.out.println(A / B); System.out.println(A % B); in.close(); } } Playground/자바문제집 2022.12.23
[백준] 1008번 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); double A = in.nextDouble(); double B = in.nextDouble(); System.out.println(A/B); in.close(); } } Playground/자바문제집 2022.12.23
[백준] 10998번 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int A = in.nextInt(); int B = in.nextInt(); System.out.println(A*B); in.close(); } } Playground/자바문제집 2022.12.23
[백준] 1001번 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int A = in.nextInt(); int B = in.nextInt(); System.out.println(A-B); in.close(); } } Playground/자바문제집 2022.12.23