How to use java user defined fastreader class?

import java.util.Arrays;
public class Main {
public static void main(String[] args) {
int[] Numbers = new int[7];
Arrays.sort(Numbers);
int a = Numbers[0];
int b = Numbers[1];
int c = Numbers[6] - a - b;
System.out.println(a + " " + b + " " + c);
}
}

This is my code, but USACO says my output is zero since I dont have a reader

1 Like

Hi, this page might help(scroll down to the FastReader section): link

Basically, the code in the FastReader section creates the FastReader class, then declares a new FastReader in the format

FastReader s = new FastReader();

Using

s.nextInt();

(or s.nextLong(), etc.) for input retrieval.