その後に、1000円札を5000円札に交換する儀式をすることにします。 変動するのは1万円札の枚数だけなので、計算量は O(n) です。 1000円札を5000円札に交換する儀式をすると、1000円札5枚が5000円札1枚になるので、 1回儀式を行うたびに、お札の合計が4枚減ります。 つまり、1万円札と1000...
C - Otoshidama 题目链接:https://abc085.contest.atcoder.jp/tasks/abc085_c Time limit : 2sec /Memory limit : 256MB Score :300points Problem Statement The commonly used bills in Japan are10000-yen,5000-yen and1000-yen bills. Below, the word "bill" refers to only these. According to A...
PythonC - Otoshidama Python ABC086C - Traveling Python ABC087B - Coins Python ABC088B - Card Game for Two Python ABC104C - All Green Python ABC105B - Cakes and Donuts PythonC - Base -2 Number PythonD - Candy Distribution Python ...
more_horiz CancelDelete Comments No comments Let's comment your feelings that are more than good LoginSign Up parkQiita Advent Calendar is held! Qiita Advent Calendar is an article posting event where you post articles by filling a calendar 🎅 ...
ABC032 C - 列Python ABC038 C - 単調増加Python ABC049 C - 白昼夢 / DaydreamPython ABC061 C - たくさんの数式 / Many FormulasPython ABC079 C - Train TicketPython ABC081 B - Shift only Python ABC083 B - Some Sums Python ABC085 B - Kagami Mochi Python C - OtoshidamaPy...