Skip to content

Instantly share code, notes, and snippets.

@Vishal1297
Last active May 29, 2020 17:43
Show Gist options
  • Save Vishal1297/6c6f13f35dbded2656d87606e8d5bb35 to your computer and use it in GitHub Desktop.
Save Vishal1297/6c6f13f35dbded2656d87606e8d5bb35 to your computer and use it in GitHub Desktop.
A Java Simple And Fast IO Template
import java.util.*;
import java.io.*;
class Template {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int T = Integer.parseInt(br.readLine().trim());
while (T-- > 0) {
int N = Integer.parseInt(br.readLine().trim());
int a[] = new int[N];
String[] s = br.readLine().trim().split(" ");
for (int i = 0; i < N; i++){
a[i] = Integer.parseInt(s[i]);
}
}
br.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment