PS/boj
-
boj)16505 - 별PS/boj 2020. 11. 14. 11:27
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 import java.io.*; import java.util.Scanner; public class boj_16505 { static char[][] map; static int N, length; static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) throws IOException { Scanner sc ..
-
boj)1992 - 쿼드트리PS/boj 2020. 11. 13. 16:21
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 import java.io.*; public class boj_1992 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringBuilder sb = new StringBuilder(); static int[][] map; static int N; public static void main(String[] ar..
-
boj)1780 - 종이의 개수PS/boj 2020. 11. 13. 14:57
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 import java.io.*; import java.util.*; public class boj_1780 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static int N; static int[] cnt; static int[][] map; public stat..
-
boj)17478 - 재귀함수가 뭔가요?PS/boj 2020. 11. 12. 14:05
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 import java.util.Scanner; public class boj_17478 { static StringBuilder sb = new StringBuilder(); static String base = "어느 한 컴퓨터공학과 학생이 유명한 교수님을 찾아가 물었다."; static String str = "\"재귀함수가 뭔가요?\""; static String str2 = "\"잘 들어보게. 옛날옛날 한 산 꼭대기에 이세..
-
boj)1074 - ZPS/boj 2020. 11. 12. 13:19
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 import java.io.*; import java.util.*; public class boj_1074 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static int n, r, c; public static void main(String[] args) throws IOException { StringTokenizer st = new StringTokenizer(br.readLine()); n = Intege..
-
boj)11729 - 하노이 탑 이동 순서PS/boj 2020. 11. 11. 18:37
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 import java.io.*; public class boj_11729 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringBuilder sb = new StringBuilder(); public static void main(String[] args) throws IOException { int n = Integer.parseInt(br.readLine()); hanoi(1, 3, n); System.out.println((int) (Math.pow(2, n) ..
-
boj)2589 - 보물섬PS/boj 2020. 11. 11. 12:18
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 import java.io.*; import java.util.*; public class boj_2589 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static int row, col, nx, ny..
-
boj)2941 - 크로아티아 알파벳PS/boj 2020. 11. 5. 16:00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 import java.io.*; public class boj_2941 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static String[] strs = {"c=", "c-", "dz=", "d-", "lj", "nj", "s=", "z="}; public static void main(String[] args) throws IOException { String str = br.readLine(); String s = str; for (int i = 0; i