2020-12-01から1ヶ月間の記事一覧

PythonでEDPC (A~C問題)

MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']], displayMath: [ ['$$','$$'], ["\\[","\\]"] ] } }); Python より PyPy A - Frog 1 B - Frog 2 C - Vacation 計算量 注意 解答 Python より PyPy 私のような初心者は Python で普…

ABC138 D - Ki

DFS の基本問題 理解してACするまで3時間半ほどかかりました。 setrecursionlimit() を知らなかったので、それを入れるまでずーっとREしてました 流れ 解答 import sys input = sys.stdin.readline #for input speed sys.setrecursionlimit(10**6) #for deep…