AtCoder 修行日記#53
53日目
ABCのC問題に取り組み中。
勉強用のコンテンツはここから。
https://kenkoooo.com/atcoder/#/table/
進捗と一言感想
[C問題] 1問(残り151問)
ABC134:Exception Handling
嫌な予感はしていて、maxとfor文を使ったら時間切れ、解説を見て簡単な解放でAC。
大事なのはリストを順番通りあらかじめ並べておくことですね。
n = int(input()) an = [int(input()) for _ in range(n)] check = sorted(an, reverse=True) for i in range(n): if an[i] == check[0] : print(check[1]) else : print(check[0])
参考
https://kenkoooo.com/atcoder/#/user/dandan611?userPageTab=AtCoder+Pie+Charts
Aizu Online Judge
www.youtube.com
目標
- まず、今年中に茶色コーダー
学習方針
- 参考:レッドコーダーが教える、競プロ・AtCoder上達のガイドライン【初級編:競プロを始めよう】 - Qiita
- 一日一題。(C問題までは!)
- コンテストにもなるべく参加する
- ちなみに言語はpython。
- つまったら10分くらいで解説動画見る
以上。