@Override public InputData readInput(Scanner scanner, int testCase) { InputData in = new InputData(testCase); in.N = scanner.nextInt(); return in; }
@Override public InputData readInput(Scanner scanner, int testCase) { InputData in = new InputData(testCase); in.N = scanner.nextInt(); in.highest = new int[in.N - 1]; for (int n = 0; n < in.N - 1; ++n) { in.highest[n] = scanner.nextInt(); } return in; }
@Override public InputData readInput(Scanner scanner, int testCase) { InputData in = new InputData(testCase); in.N = scanner.nextInt(); in.levels = Lists.newArrayList(); /** Number of points(stars) prereq to play level 1 ; Number to play level 2 */ for (int i = 0; i < in.N; ++i) { in.levels.add(new Level(scanner.nextInt(), scanner.nextInt())); } // log.info("TestCase {} Grid {}", testCase, in.grid); return in; }