Buying Integers

Problem Name:
Buying Integers
Site:Spoj
Links:
Tags:
Problem setters: