Sichuan University Programming Contest 2013 Final (Team)

C: Find Ternary Number