Bytelandian gold coins: python version

http://www.codechef.com/problems/COINS

This did not pass though because it is too slow.
Bytelandian gold coins: input

Correct output:
13
2
Bytelandian gold coins: C version

http://www.codechef.com/problems/COINS

PASSED