import java.io.*;
static class Reader {
public BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public StreamTokenizer st = new StreamTokenizer(br);
public void token() {
try {
st.nextToken();
} catch (IOException e) {
}
}
public int nextInt() {
token();
return (int)st.nval;
}
public String next() {
token();
return st.sval;
}
}
在我们使用Scanner类进行读入数据时,数据一旦过万,他就会显得非常慢
而用StreamTokenizer类要快很多