Closed andrewyao67 closed 3 years ago
因為你用 set 來存商品,但 set 裡的資料本身是沒有順序的,所以輸出的資料不會保持原本的順序。要不要試試看用串列的方式存資料,然後再用 set 的 method 進行運算?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
提交連結
https://judge.ccclub.io/status/57a99e7d61e365fccbc41db307ec040a
程式碼
錯誤訊息
問題描述
答案的物品順序不知道怎麼處理,內容都對,圖片是output。(錢包、鑰匙的順序錯)