语法错误
- 在创建数组new int 【n】,不用加上数组名字,若是加上就是错的
快读模板
import java.util.Scanner;
import java.io.*;
import java.util.StringTokenizer;
// 1:无需package
// 2: 类名必须Main, 不可修改
public class Main {
public static void main(String[] args) {
int t=1;
for(int i=1;i<=t;i++){
solve();
}
out.flush();
}
static void solve(){
}
static FastReader in=new FastReader();
static PrintWriter out=new PrintWriter(System.out);
static class FastReader{
static BufferedReader br;
static StringTokenizer st;
FastReader{
br = new BufferedReader(new InputStreamReader(System.in));
}
String next(){
String str="";
while(st==null||!st.hasMoreElements()){
try{
str=br.readLine();
}catch(IOException e){
throw new RuntimeException(e);
}
st=new StringTokenizer(str);
}
return st.nextToken();
}
int nextInt(){
return Integer.parseInt(next());
}
int nextDouble(){
return Double.parseDouble(next());
}
int nextLong(){
return Long.parseLong(next());
}
}
}