spoj ascdfib – Ascending Fibonacci Numbers

nice problem,

the usual algorithm works in C++ with counting sort. but if you want to make it in the python or to improve c++ speed, you have to use pisano number of 100000 which is 150000.

here’s my code

https://gist.github.com/a9f12fd6698ef998a54f

Advertisements