{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2017%2F01%2F03%2F110721\" title=\"yukicoder No.18 \u3046\u30fc\u3055\u30fc\u6697\u53f7 - srup\u306e\u30e1\u30e2\u5e33\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","height":"190","categories":["yukicoder","\u6587\u5b57\u5217"],"author_url":"https://blog.hatena.ne.jp/mmxsrup/","provider_name":"Hatena Blog","type":"rich","provider_url":"https://hatena.blog","blog_title":"srup\u306e\u30e1\u30e2\u5e33","title":"yukicoder No.18 \u3046\u30fc\u3055\u30fc\u6697\u53f7","author_name":"mmxsrup","version":"1.0","published":"2017-01-03 11:07:21","url":"https://mmxsrup.hatenablog.com/entry/2017/01/03/110721","blog_url":"https://mmxsrup.hatenablog.com/","image_url":null,"description":"\u554f\u984c \u554f\u984c\u6982\u8981 i\u6587\u5b57\u76ee\u306fi\u6587\u5b57\u524d\u3078\u305a\u3089\u3057\u3089\u6587\u5b57\u306b\u7f6e\u63db\u3057\u305f\u6587\u5b57\u5217\u3092\u6c42\u3081\u308b\u554f\u984c\u3002 \u89e3\u6cd5 A\u304b\u3089\u306eindex\u3092\u6c42\u3081\u3066\u3001i\u756a\u76ee\u306a\u3089i\u6587\u5b57\u524d\u3078\u305a\u3089\u305b\u3070\u826f\u3044\u3002\u305f\u3060\u3057\u3001\u305d\u306e\u307e\u307e d -= i + 1 \u3068\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u30de\u30a4\u30ca\u30b9\u306b\u306a\u308b\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u3001\u5148\u306b2600(=0(mod26))\u3050\u3089\u3044\u306e\u6570\u5b57\u3092\u8db3\u3057\u3066\u304a\u3044\u305f\u3002 \u30df\u30b9 \u306a\u3057\u3002 \u30b3\u30fc\u30c9 #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vint; typedef pair<int,int> pint; typedef vector<pin\u2026"}