AtCoder Beginner Contest 458 参加記録と解答例 (A D問題)
The article discusses the author's participation in AtCoder Beginner Contest 458, focusing on problems A to D. It includes a review of the problems and the author's solutions using Python code. Each problem is described along with constraints and the author's approach to solving them.
- ▪The contest featured problems labeled A through D, each with specific constraints and scoring.
- ▪The author provided detailed explanations and Python code for each problem's solution.
- ▪The problems involved string manipulation, grid counting, substring analysis, and median calculation.
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 16 AtCoder Beginner Contest 458 参加記録と解答例 (A D問題) #atcoder #python #競技プログラミング #優先度付きキュー 本記事は、AtCoder Beginner Contest 458 (SMBCプログラミングコンテスト #1) に参加した際の、A〜D問題の復習と解答の備忘録です。コンテスト中に考えた解法の方針や、提出したPythonのコードについて整理しています。 A - Chompers / 実行時間制限: 2 sec / メモリ制限: 1024 MiB 配点 : 100 点 問題文 英小文字からなる文字列 $S$ と正の整数 $N$ が与えられます。 $S$ の長さは $2N+1$ 以上です。 $S$ の先頭と末尾から $N$ 文字ずつ取り除いて得られる文字列を求めてください。 制約 $S$ は英小文字からなる文字列 $N$ は整数 $2N+1 \le |S| \le 30$ $1 \le N \le 10$ 自分の解答の方針…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).