出處:APCS
上傳作業:http://203.68.236.9/problem/c0118
zerojudge 網址 https://zerojudge.tw/ShowProblem?problemid=c462
解題策略
字串處理與模擬
參考程式碼