Sichuan University Programming Contest 2009 Preliminary (Single)

F: Line of Dice