Start here Loops and simulation · 1 of 2
Basic syntax and I/O
Read a judge's input, print the answer in the layout it expects, write loop bounds that are not off by one, and keep numbers in a type large enough for them.
Books1
Links3
- Input & Output Standard and file input in C++, Java and Python, with a worked solution to CSES Weird Algorithm and how to submit it. usaco.guide (opens in a new tab)
- Data Types The range of each number type in C++, Java and Python, in one table per language. usaco.guide (opens in a new tab)
- Fast Input & Output Timings for each way of reading and printing 10^6 numbers, including the 5.8 and 0.41 seconds quoted above. usaco.guide (opens in a new tab)