Project Euler 78 Coin partitions
Codeforces Round #202 Problem ABCD