{"published":"2019-10-28 16:48:05","title":"\u5165\u529b\u3055\u308c\u305f\u5024\u306e\u3079\u304d\u4e57\u3092\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0","description":"\u8133\u6b7b\u3067\u66f8\u3044\u305f\u306e\u3067\u3001\u3082\u3063\u3068\u65e9\u3044\u65b9\u6cd5\u304c\u3042\u308a\u305d\u3046\u306b\u601d\u3046\u3002(int)sqrt(num*1.0)\u3082\u6b63\u3057\u304f\u5e73\u65b9\u6839\u304c\u6c42\u3081\u3089\u308c\u3066\u3044\u308b\u306e\u304b\u3001\u5c11\u3057\u81ea\u4fe1\u304c\u306a\u3044\u3002 sqrt\u95a2\u6570\u306e\u623b\u308a\u5024\u304c\u6841\u843d\u3061\u3057\u3066\u5207\u308a\u6368\u3066\u3055\u308c\u305f\u3089\u6b63\u3057\u3044\u5024\u304c\u8fd4\u3063\u3066\u3053\u306a\u3044\u306e\u3067\u3002\u30b3\u30fc\u30c9 #include <stdio.h> #include <math.h> int main(void) { int num; scanf(\"%d\", &num); for(int m = 2; m <= (int)sqrt(num*1.0); m++){ int current = num; int n = 0; while(current%m == 0){ current\u2026","image_url":null,"url":"https://bluelightbleze.hatenablog.com/entry/2019/10/28/164805","blog_title":"\u5168\u77e5\u5168\u80fd\u3092\u76ee\u6307\u3059\u4eba\u306e\u3042\u308a\u304c\u305f\u3044\u96d1\u8a18","author_name":"bluelightbleze","author_url":"https://blog.hatena.ne.jp/bluelightbleze/","width":"100%","categories":["C\u8a00\u8a9e"],"provider_name":"Hatena Blog","blog_url":"https://bluelightbleze.hatenablog.com/","type":"rich","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbluelightbleze.hatenablog.com%2Fentry%2F2019%2F10%2F28%2F164805\" title=\"\u5165\u529b\u3055\u308c\u305f\u5024\u306e\u3079\u304d\u4e57\u3092\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0 - \u5168\u77e5\u5168\u80fd\u3092\u76ee\u6307\u3059\u4eba\u306e\u3042\u308a\u304c\u305f\u3044\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","height":"190"}