Last active
May 24, 2020 19:01
-
-
Save Vishal1297/c405b541228ac57d69bfae0d2dfcb1e8 to your computer and use it in GitHub Desktop.
A Basic Java Competitive Programming 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.*; | |
// 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