{"blog_url":"https://blog.hamayanhamayan.com/","published":"2018-10-22 21:23:08","image_url":null,"type":"rich","author_name":"hamayanhamayan","height":"190","description":"https://yukicoder.me/problems/no/747 \u89e3\u8aac https://yukicoder.me/submissions/293314Easy\u3068\u65b9\u91dd\u306f\u540c\u3058\u3002 (N^K)%6\u304c\u6c42\u307e\u308c\u3070\u7b54\u3048\u304c\u6c42\u307e\u308b\u3002 (N^K)%6=((N%6)^K)%6 \u3068\u306a\u308b\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305aN\u306f%6\u3068\u3057\u305f\u5024\u3068\u3057\u3066\u304a\u304f\u3002 \u4e0a\u306e\u6841\u304b\u30891\u6841\u305a\u3064%6\u3057\u306a\u304c\u3089\u8db3\u3057\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001N%6\u3092\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 mod\u4e0a\u3067\u306e\u7d2f\u4e57\u306f\u5468\u671f\u6027\u3092\u6301\u3064\u3002 \u306a\u306e\u3067\u3001N = N^loop (mod 6)\u3068\u306a\u308bloop\u304c\u5b58\u5728\u3059\u308b\u3002 \u3053\u308c\u3092\u6c42\u3081\u3088\u3046\u3002 \u3059\u308b\u3068\u3001K\u306fK%loop\u306e\u5024\u304c\u308f\u304b\u308c\u3070\u3044\u3044\u3053\u3068\u306b\u306a\u308b\u3002 N^K = N^(K%lo\u2026","url":"https://blog.hamayanhamayan.com/entry/2018/10/22/212308","provider_name":"Hatena Blog","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","width":"100%","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","version":"1.0","title":"\u5faa\u74b0\u5c0f\u6570N\u6841\u76ee Hard [yukicoder No.747]","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F10%2F22%2F212308\" title=\"\u5faa\u74b0\u5c0f\u6570N\u6841\u76ee Hard [yukicoder No.747] - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"]}