본문 바로가기

언어/JAVA

PS 용 baseCode(추가예정)

반응형
복붙용
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
 
public class Input {
 
    // 기본 y , x 좌표형
    static class Pair {
        int y;
        int x;
 
        public Pair(int y, int x) {
            super();
            this.y = y;
            this.x = x;
        }
    }
 
    // 가중치가 있는 y,x형
    static class Point implements Comparable<Point> {
        int y;
        int x;
        int w;
 
        public Point(int y, int x, int w) {
            super();
            this.y = y;
            this.x = x;
            this.w = w;
        }
 
        @Override
        public int compareTo(Point o) {
            return w - o.w;
        }
    }
 
    // 4방타셈
    static int dy[] = { 1-100 };
    static int dx[] = { 001-1 };
    
    //8방탐색
    static int dy[] = { 1-10011-1-1 };
    static int dx[] = { 001-11-1-11 };
    
    static class VER{
        int u;
        int w;
        public VER(int u, int w) {
            super();
            this.u = u;
            this.w = w;
        }
    }
    static ArrayList<VER> list[];
 
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st;
        
        list = new ArrayList[N+1];
        for(int n=1;n<=N;n++) {
            list = new ArrayList<VER>();
        }
    }
}
 
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
반응형

'언어 > JAVA' 카테고리의 다른 글

Servlet API란? Gradle을 이용해서 이클립스에 ServletAPI를 등록  (0) 2020.08.08
java : ArrayList : subList, reverse  (0) 2020.05.13
백준 : 15684  (0) 2020.01.30
JAVA : 자바의 빠른 입출력  (0) 2020.01.23
JAVA : 2차원 ArrayList  (0) 2020.01.23