Skip to content

Instantly share code, notes, and snippets.

@alfredgamulo
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfredgamulo/b09fd8000a5da67ed34a to your computer and use it in GitHub Desktop.
Save alfredgamulo/b09fd8000a5da67ed34a to your computer and use it in GitHub Desktop.
Java template for Google CodeJam
import java.util.*;
import java.io.PrintStream;
import java.util.Scanner;
public class A {
Scanner sc = new Scanner(getClass().getResourceAsStream(FILENAME));
static final String FILENAME = "file.in";
PrintStream out = System.out;
private void run() throws Exception {
String s = sc.nextLine();
int t = Integer.parseInt(s);
for (int i = 1; i <= t; i++) {
out.print("Case #" + i + ": ");
out.println("example");
}
sc.close();
out.close();
}
public static void main(String args[]) throws Exception {
new A().run();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment