By pre-decrementing the counter before each check, the loop avoids processing the last element twice.
各チェックの前にカウンタを先にデクリメントすることで、ループは最後の要素を二度処理するのを回避できます。
アカウントを持っていませんか? 新規登録
アカウントを持っていますか? ログイン
DiQt(ディクト)
無料
★★★★★★★★★★