{"published":"2024-07-21 06:40:38","type":"rich","url":"https://junkobayashi.hatenablog.com/entry/2024/07/21/064038","categories":["ABC\u6311\u6226\u8a18"],"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/JunKobayashi/","blog_url":"https://junkobayashi.hatenablog.com/","height":"190","image_url":null,"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2024%2F07%2F21%2F064038\" title=\"ABC363\u6311\u6226\u8a18 - JunKobayashi&#39;s Diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","width":"100%","author_name":"JunKobayashi","title":"ABC363\u6311\u6226\u8a18","blog_title":"JunKobayashi's Diary","description":"\u57fa\u672c\u7684\u306a\u4e8b\u9805\u306e\u5b66\u7fd2\u304c\u4e0d\u5341\u5206\u3059\u304e\u305f\u305f\u3081\u60b2\u3057\u307f\u306e2\u5b8c\ud83d\ude2d\ud83d\ude2d\ud83d\ude2d\ud83d\ude2d\ud83d\ude2d\ud83d\ude2d\ud83d\ude2d\ud83d\ude2d\ud83d\ude2d C++\u306estd::next_permutation\u304c\u3069\u306e\u3088\u3046\u306b\u632f\u308b\u821e\u3046\u306e\u304b\u3092\u6b63\u3057\u304f\u7406\u89e3\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3068\u3044\u3046\u3042\u307e\u308a\u306b\u3082\u304f\u3060\u3089\u306a\u3059\u304e\u308b\u7406\u7531\u3067\u306e\u5931\u70b9\u3068\u306a\u3063\u305f\u305f\u3081\u3001\u4eca\u5f8c\u306f\u4e8c\u5ea6\u3068\u540c\u3058\u8f4d\u3092\u8e0f\u307e\u306c\u3088\u3046\u306b\u3053\u306e\u8a18\u4e8b\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002 \uff1cA\u554f\u984c\uff1e \u2193\u554f\u984c\u306e\u30da\u30fc\u30b8\u2193 A - Piling Up \u89e3\uff08\\(S\\)\u3068\u8868\u3059\uff09\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002\\begin{equation} S= \\begin{cases} 100 & \\text{if $R \\equiv $0 $\\pmod {100} $,} \\\\ 100 - (R \\mod 100) & \\text\u2026"}