Skip to content

Instantly share code, notes, and snippets.

@Vishal1297
Last active May 24, 2020 19:01
Show Gist options
  • Save Vishal1297/c405b541228ac57d69bfae0d2dfcb1e8 to your computer and use it in GitHub Desktop.
Save Vishal1297/c405b541228ac57d69bfae0d2dfcb1e8 to your computer and use it in GitHub Desktop.
A Basic Java Competitive Programming Template.
import java.util.*;
import java.io.*;
// Simple Template @Vishal
class Template {
public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
try {
int t = sc.nextInt();
while (t-- > 0) {
int A = sc.nextInt();
int B = sc.nextInt();
// some code here...
}catch(Exception ex){
return;
}
sc.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment