Earning on Bets

Problem Name:
Earning on Bets
Site:CodeForces
Links:
Tags:
Problem setters: