~/about/cp

Competitive Programming

Resources

C++

bits/stdc++.h

A header file commonly used in competitive programming to include everything in the C++ standard library. It is non-standard and primarily only included in the header files bundled with GNU compilers. However, it may be manually added to the include path of other compilers such as Clang.

Input Validator

A set of input functions for validating competitive programming inputs to ensure generated inputs conform to formatting requirements.

Java

BufferedReader Template

Collecting large amounts of input in Java using the built-in Scanner class is relatively slow due to a small buffer size. This template includes wrapper functions to parse BufferedReader input as an alternative to Scanner.