Submission #302606

#TimeUsernameProblemLanguageResultExecution timeMemory
302606ASD3DCarnival Tickets (IOI20_tickets)Java
Compilation error
0 ms0 KiB
public class Problem {
    public static int find_maximum(int k, int[][] x) {
        int ans = 0;
        for (int i = 0; i < x.length; i++) {
            ans += x[i][0];
        }
        ans -= x.length * x[x.length/2][0];
        int[][] s = new int[x.length][1];
        allocate_tickets(s);
        return ans;
    }
}

Compilation message (stderr)

tickets.java:1: error: class Problem is public, should be declared in a file named Problem.java
public class Problem {
       ^
tickets.java:9: error: cannot find symbol
        allocate_tickets(s);
        ^
  symbol:   method allocate_tickets(int[][])
  location: class Problem
grader.java:56: error: cannot find symbol
        tickets solver = new tickets();
        ^
  symbol:   class tickets
  location: class grader
grader.java:56: error: cannot find symbol
        tickets solver = new tickets();
                             ^
  symbol:   class tickets
  location: class grader
4 errors