spoj SPOJ Classical Problems solved in the following order: http://www.spoj.com/problems/classical/sort=6 Use GCC Compiler with -std=gnu++14 or -std=gnu++11