CSES - Datatähti 2016 alku - Results
Submission details
Task:Osajono
Sender:Galax
Submission time:2015-09-29 17:56:33 +0300
Language:Java
Status:COMPILE ERROR

Compiler report

input/Main.java:15: error: not a statement
        io.close;
          ^
1 error

Code

public class Main {

    public static void main(String[] args) {
        IO io = new IO();
        String input = io.next();
        int counter = 0;
        for(int i=0;i<input.length();i++) {
            for (int j = i; j < input.length(); j++) {
                if (input.charAt(i)==input.charAt(j)) {
                    counter++;
                }
            }
        }
        io.println(counter);
        io.close;
    }


}