자바

·백준
문제https://www.acmicpc.net/problem/15829코드import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int L = Integer.parseInt(br.readLine()); int r = 31; int M = 1234567891; String line = br.readLine(); long result = 0; long pow = 1; ..
·백준
문제https://www.acmicpc.net/problem/2667코드import java.io.*;import java.util.*;public class Main { private static int[][] map; private static boolean[][] visited; private static int N; private static int[] dx = {-1, 1, 0, 0}; private static int[] dy = {0, 0, 1, -1}; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputS..
·백준
문제https://www.acmicpc.net/problem/7568코드import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); Person[] people = new Person[N]; for (int i = 0; i 0) { rank++; ..
·백준
문제https://www.acmicpc.net/problem/4949 코드import java.io.*;import java.util.Stack;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while (true) { String str = br.readLine(); if (str.equals(".")) { ..
·백준
문제https://www.acmicpc.net/problem/21736코드import java.io.*;import java.util.StringTokenizer;public class bj_21736 { private static int N; private static int M; private static char[][] graph; private static boolean[][] visited; private static int[] dx = {1, 0, -1, 0}; private static int[] dy = {0, 1, 0, -1}; private static int result = 0; public static void main(String[] ar..
·백준
문제https://www.acmicpc.net/problem/11724코드import java.io.*;import java.util.*;public class bj_11724 { private static boolean[] visited; private static ArrayList[] graph; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int N = ..
G.H
'자바' 태그의 글 목록 (2 Page)