{"url":"https://area.hateblo.jp/entry/2016/05/23/160853","provider_name":"Hatena Blog","published":"2016-05-23 16:08:53","author_url":"https://blog.hatena.ne.jp/Area1/","image_url":"http://chart.apis.google.com/chart?cht=tx&chl=A_i","blog_title":"Area1\u306eif(memo[i][j])","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Farea.hateblo.jp%2Fentry%2F2016%2F05%2F23%2F160853\" title=\"POJ 2407 Relatives - Area1\u306eif(memo[i][j])\" 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%","blog_url":"https://area.hateblo.jp/","author_name":"Area1","title":"POJ 2407 Relatives","type":"rich","provider_url":"https://hatena.blog","categories":["POJ","\u5305\u9664\u539f\u7406","\u6574\u6570\u554f\u984c"],"version":"1.0","height":"190","description":"\u554f\u984c n(1\u81ea\u7136\u6570\u306e\u500b\u6570\u3092\u6c42\u3081\u3088\u3002 \u3084\u308a\u304b\u305f \u5305\u9664\u539f\u7406\u3002 n\u306e\u7d20\u56e0\u6570p[]\u3092\u6c42\u3081\u3066\u304a\u304f\u3002\u3059\u308b\u3068n\u3068\u4e92\u3044\u306b\u7d20\u3067\u306a\u3044n\u672a\u6e80\u306e\u81ea\u7136\u6570\u306e\u6570\u306f\u3001\u3092n\u672a\u6e80\u306ep[i]\u306e\u500d\u6570\u306e\u96c6\u5408\u3068\u3059\u308b\u3068\u3067\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u3053\u308c\u306f\u5305\u9664\u539f\u7406\u3092\u3082\u3068\u306b\u3059\u3050\u8a08\u7b97\u3067\u304d\u308b\u3002(K\u306fn\u306e\u7d20\u56e0\u6570\u306e\u500b\u6570)\u4ee5\u4e0b\u30bd\u30fc\u30b9\u3002 vector<int> pf(int n){ vector<int> ans; for(int i = 2; i * i <= n; i++){ if(n % i == 0){ ans.push_back(i); while(n % i == 0) n /= i; } } if(n != 1) ans.push_back(n);\u2026"}