The secret of betting

Problem Name:
The secret of betting
Site:CodeForces
Links:
Tags:
Problem setters: