Top_coder_srm114_lottery.cpp