Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 571 Bytes

Guide.md

File metadata and controls

27 lines (20 loc) · 571 Bytes

Java Competitive Programming Template Guide

Quick Start

  1. Copy src/Solution.java to start a new problem
  2. Write your solution in the solve() method
  3. For multiple test cases, uncomment t = sc.nextInt();

Core Features

FastScanner (Input)

sc.nextInt()    sc.nextLong()    sc.nextDouble()
sc.next()       sc.nextLine()

Helper Methods

print(x)  println(x)  printArray(arr)
max(a, b, c, ...)     min(a, b, c, ...)
maxArray(arr)         minArray(arr)

Data Structures

  • [Add your DS classes here]
  • More to come...