hiho week 71 register

Ended

Participants:210

Verdict:Accepted
Score:100 / 100
Submitted:2015-11-09 18:12:31

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.List;
import java.util.Scanner;
public class Main {
    static class Constellations{
        static class Point{
             int x,y;
            public Point(int xint y){
                this.x = x;
                this.y = y;
            }
        }
        class ConstellationMap{
            int[][] map;
            int n,m;
            ArrayList<Point> starList;
            
            public ConstellationMap(int nint m){
                this.n = n;
                this.m = m;
                map = new int[n][m];
                for(int i = 0i < n ; ++i)
                    for(int j = 0j < m++j)
                         map[i][j= 0;
                starList = new ArrayList<Point>();
            }
            public void addStar(int rowint colchar value){
                int star = 0;
                if(value == '#'){
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX