AtCoder Beginner Contest 460 参加記録と解答例 (A D問題)
The article discusses the author's participation in AtCoder Beginner Contest 460, detailing the solutions for problems A to D. It includes explanations of the problems, the strategies used to solve them, and the Python code submitted. The author reflects on the contest experience and shares insights into competitive programming.
- ▪The article covers solutions for problems A to D from AtCoder Beginner Contest 460.
- ▪It includes detailed explanations and Python code for each problem.
- ▪The author shares their strategies and thought processes during the contest.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3813685) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } iwamutsu256 Posted on May 30 AtCoder Beginner Contest 460 参加記録と解答例 (A D問題) #atcoder #python #競技プログラミング #多始点bfs 本記事は、AtCoder Beginner Contest 460 (ABC460) に参加した際の、A〜D問題の復習と解答の備忘録です。コンテスト中に考えた解法の方針や、提出したPythonのコードについて整理しています。 A - Mod While Positive 配点 : 100 点 問題文 正整数 $N, M$ が与えられます。 $M$ の値が 0 でない間以下の操作を繰り返すとき、操作を行う回数を求めてください。 $N$ を $M$ で割った余りを $x$ とする。 $M$ の値を $x$ で置き換える。 なお、この操作を有限回行うことにより $M=0$ になることが証明できます。 制約 $1 \le N, M \le 1000$ 入力される値はすべて整数 自分の解答の方針 $M=0$ が保証されているので、 $M=0$…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).