AtCoder上にある問題のうち、AtCoder Problemsでdiff 800以上と判定されているものを順番に解いていく企画。
基本的な考え方は全てコード中のコメントに入れてあるので、参照のこと。
出典:
AtCoder Grand Contest 036 A – Triangle
どちらかというと、数学的知識が問われる問題。知っていれば比較的簡単に解けるが、知らなければ糸口を掴むのが難しいかも。ま、AGCだしね……。
[pastacode lang=”python” user=”scrblbug” repos=”atcoder” path_id=”python/agc036_a.py” revision=”” highlight=”” lines=”” provider=”github”/]