hiho week 101 register

Ended

Participants:397

Verdict:Accepted
Score:100 / 100
Submitted:2016-06-05 16:16:34

Lang:Java

Edit
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
import java.util.*;
public class Main{
    static class Node{
        Node up;
        Node down;
        Node left;
        Node right;
        int x;
        int y;
    }
    public static Node head;
    public static Node[] columnList;
    public static int nm;
    public static int[][] arr;
    public static void init(){
        head = new Node();
        head.up = head.down = head.left = head.right = head;
        head.x = head.y = 0;
        columnList = new Node[m + 1];
        for(int i = 1i <= mi++)
            columnList[i= new Node();
    }
    public static void build(){
        Node pre = head;
        Node p = null;
        //
        for(int i = 1i <= mi++){
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX