Problems from Codeforces and UVa Online Judge

Mainly covers problems in book competitive programming 3.