Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class Main {
    static int[][] math;
    static final int MATH_LENGTH = 10;
 
    public static void main(String[] args) throws IOException {
        //紙
	math = new int[10][10];
        int scale;
       
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String inputStr = null;
        while (true) {
            inputStr = br.readLine();
            if (inputStr == null || inputStr.isEmpty()) {
                break;
            }
            
            String[] inputSplitStr = inputStr.split(",");
            scale = Integer.valueOf(inputSplitStr[2]);
 
            switch (scale) {
            case 1: //インキ滴「小」
                setSmallInk(Integer.valueOf(inputSplitStr[0]), Integer.valueOf(inputSplitStr[1]);
                break;
            case 2: //インキ滴「中」
                setMediumInk(Integer.valueOf(inputSplitStr[0]), Integer.valueOf(inputSplitStr[1]);
                break;
            case 3: //インキ滴「大」
                setLargeInk(Integer.valueOf(inputSplitStr[0]), Integer.valueOf(inputSplitStr[1]);
                break;
            }
        }
        //集計
        int whiteNumber = 0;
        int mostNumber = 0;
        for (int i = 0; i < MATH_LENGTH; i++) {
            for (int j = 0; j < MATH_LENGTH; j++) {
                if (math[i][j] == 0) {
                    whiteNumber++;
                }
                if (mostNumber < math[i][j]) {
                    mostNumber = math[i][j];
                }
            }
        }
        System.out.println(whiteNumber);
        System.out.println(mostNumber);
    }
 
    private static void setSmallInk(int x, int y) {
        math[x][y]++;
        if ((x - 1) >= 0) {
            math[x - 1][y]++;
        }
        if ((y - 1) >= 0) {
            math[x][y - 1]++;
        }
        if (MATH_LENGTH > (x + 1)) {
            math[x + 1][y]++;
        }
        if (MATH_LENGTH > (y + 1)) {
            math[x][y + 1]++;
        }
    }
 
    private static void setMediumInk(int x, int y) {
        math[x][y]++;
        if ((x - 1) >= 0) {
            math[x - 1][y]++;
            if ((y - 1) >= 0) {
                math[x - 1][y - 1]++;
            }
            if (MATH_LENGTH > (y + 1)) {
                math[x - 1][y + 1]++;
            }
        }
        if ((y - 1) >= 0) {
            math[x][y - 1]++;
        }
        if (MATH_LENGTH > (y + 1)) {
            math[x][y + 1]++;
        }
        if (MATH_LENGTH > (x + 1)) {
            math[x + 1][y]++;
            if ((y - 1) >= 0) {
                math[x + 1][y - 1]++;
            }
            if (MATH_LENGTH > (y + 1)) {
                math[x + 1][y + 1]++;
            }
        }
    }
 
    private static void setLargeInk(int x, int y) {
        math[x][y]++;
        if ((x - 2) >= 0) {
            math[x - 2][y]++;
        }
        if (MATH_LENGTH > (x + 2)) {
            math[x + 2][y]++;
        }
        if ((y - 2) >= 0) {
            math[x][y - 2]++;
        }
        if (MATH_LENGTH > (y + 2)) {
            math[x][y + 2]++;
        }
        if ((x - 1) >= 0) {
            math[x - 1][y]++;
            if ((y - 1) >= 0) {
                math[x - 1][y - 1]++;
            }
            if (MATH_LENGTH > (y + 1)) {
                math[x - 1][y + 1]++;
            }
        }
        if ((y - 1) >= 0) {
            math[x][y - 1]++;
        }
        if (MATH_LENGTH > (y + 1)) {
            math[x][y + 1]++;
        }
        if (MATH_LENGTH > (x + 1)) {
            math[x + 1][y]++;
            if ((y - 1) >= 0) {
                math[x + 1][y - 1]++;
            }
            if (MATH_LENGTH > (y + 1)) {
                math[x + 1][y + 1]++;
            }
        }
    }
}

Compiler output:
Main.java:27: error: ')' or ',' expected
                setSmallInk(Integer.valueOf(inputSplitStr[0]), Integer.valueOf(inputSplitStr[1]);
                                                                                                ^
Main.java:30: error: ')' or ',' expected
                setMediumInk(Integer.valueOf(inputSplitStr[0]), Integer.valueOf(inputSplitStr[1]);
                                                                                                 ^
Main.java:33: error: ')' or ',' expected
                setLargeInk(Integer.valueOf(inputSplitStr[0]), Integer.valueOf(inputSplitStr[1]);
                                                                                                ^
3 errors