/UsacoTemplate

The template I use for usaco training. Put in Intellij to work

Primary LanguageJava

UsacoTemplate

The template I use for usaco training. Put in Intellij to work

How to install

  1. Open Intellij
  2. File -> Settings
  3. Editor -> File and Code Templates
  4. Create Template
  5. Paste in code
  6. Change USERNAME_GOES_HERE to your username

How to use

  • 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

Features

  • Shows how long your solution took
  • Efficient input as used by Petr Mitrichev
  • One uncluttered method to put your solution in