{"provider_name":"Hatena Blog","blog_url":"https://logfiles.hatenablog.com/","author_name":"moistx","blog_title":"Logfiles","version":"1.0","author_url":"https://blog.hatena.ne.jp/moistx/","url":"https://logfiles.hatenablog.com/entry/20140314/1394804748","categories":["TopCoder"],"published":"2014-03-14 22:45:48","provider_url":"https://hatena.blog","image_url":null,"height":"190","title":"SRM425 Div2Easy - Inverse Factoring","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140314%2F1394804748\" title=\"SRM425 Div2Easy - Inverse Factoring - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u554f\u984c\u6982\u8981 \u6b63\u306e\u6574\u6570 n \u306e \"proper factor\" \u3068\u306f\u30011 \u3068 n \u3092\u542b\u307e\u306a\u3044 n \u306e\u56e0\u6570\u3068\u3057\u3066\u5b9a\u7fa9\u3065\u3051\u3089\u308c\u308b\u3002\u3042\u308b\u6b63\u306e\u6574\u6570 n \u306e\u5168\u3066\u306e \"proper factor\" \u304c int[] \u3067\u5165\u529b\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u3053\u304b\u3089 n \u3092\u5c0e\u3051\u3002\u89e3\u6cd5 \u5165\u529b\u306e\u6700\u5c0f\u306e\u8981\u7d20\u3068\u6700\u5927\u306e\u8981\u7d20\u306e\u7a4d\u304c\u7b54\u3048\u3068\u306a\u308b\u3002\u4ee5\u4e0b editorial \u3092\u53c2\u8003 n \u306e\u3042\u308b\u56e0\u6570\u304c f1 \u3067\u3042\u308b\u3068\u304d\u3001f2 = n/f1 \u3082\u307e\u305f n \u306e\u56e0\u6570\u3067\u3042\u308b\u3002\u3088\u3063\u3066 n = f1 * f2 \u3068\u8868\u305b\u308b\u3002 \u5225\u306e n \u306e\u56e0\u6570 a1 \u304c\u3042\u308a\u3001a1 \u3064\u307e\u308a n \u3092\u751f\u6210\u3059\u308b\u306b\u306f\u3001prime factors \u306e\u5bfe\u79f0\u306e\u4f4d\u7f6e\u306b\u3042\u308b\u5024\u306e\u30da\u30a2\u306e\u3069\u308c\u3067\u3082\u3088\u3044\u306e\u3067\u3001\u305d\u306e\u7a4d\u3092\u53d6\u2026","width":"100%","type":"rich"}