hiho week 64 register

Ended

Participants:874

Verdict:Accepted
Score:100 / 100
Submitted:2015-09-20 09:14:17

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.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Scanner;
public class Main {
    static Scanner in = new Scanner(System.in);
    public static void main(String args[]) {
        HashMap<IntegerPanel> rows = new HashMap<>();
        int n = in.nextInt();
        in.nextLine();
        Panel root = getPanel();
        for (int i = 1i <= ni++) {
            rows.put(igetPanel());
        }
        System.out.println(root.getHeight(rows));
    }
    static Panel getPanel() {
        Panel p = new Panel();
        String strs[] = in.nextLine().split(" ");
        for (int n = strs.lengthi = 1i < ni++) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX