Skip to content

Instantly share code, notes, and snippets.

@NaniteFactory
Created April 14, 2018 02:24
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 NaniteFactory/ab61ed65463f8e6b6615e4c31d8e9643 to your computer and use it in GitHub Desktop.
Save NaniteFactory/ab61ed65463f8e6b6615e4c31d8e9643 to your computer and use it in GitHub Desktop.
That's how you start out.
import java.util.*;
import java.io.*;
public class Solution {
public static void main(String args[]) throws NumberFormatException, IOException {
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
final int nTestcases = Integer.parseInt(br.readLine());
final StringBuilder ret = new StringBuilder();
for (int testcase = 1; testcase <= nTestcases; ++testcase) {
int answer = 0;
// solve
ret.append('#');
ret.append(testcase);
ret.append(' ');
ret.append(answer);
ret.append('\n');
} // for testcase
System.out.println(ret);
} // main()
} // public class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment