The template I use for usaco training. Put in Intellij to work
- Open Intellij
- File -> Settings
- Editor -> File and Code Templates
- Create Template
- Paste in code
- Change USERNAME_GOES_HERE to your username
- To make a new file, go to new -> code template name -> enter in name (lowercase)
- Type your solution inside the solve() method
- use in.next(), in.nextInt(), etc for reading
- use out.println(), out.print(), etc for writing
- Shows how long your solution took
- Efficient input as used by Petr Mitrichev
- One uncluttered method to put your solution in