Last active
May 29, 2020 17:43
-
-
Save Vishal1297/6c6f13f35dbded2656d87606e8d5bb35 to your computer and use it in GitHub Desktop.
A Java Simple And Fast IO Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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