本文主要是介绍Java 刷题模版,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Java 模版一
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
}
private static final int N = (int) 2e5 + 10;
private static int n;
}
Java 模版二
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
String[] strArray1 = br.readLine().split(" ");
t = Integer.parseInt(strArray1[0]);
k = Integer.parseInt(strArray1[1]);
bw.write("\n");
bw.flush();
bw.close();
br.close();
}
private static final int N = (int) 2e5 + 10;
private static int[] a = new int[N];
private static int t, k;
}
这篇关于Java 刷题模版的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!