{"author_url":"https://blog.hatena.ne.jp/inamori/","blog_url":"https://inamori.hateblo.jp/","version":"1.0","provider_url":"https://hatena.blog","title":"AtCoder Beginner Contest 239 A","image_url":null,"blog_title":"inamori\u2019s diary","type":"rich","height":"190","url":"https://inamori.hateblo.jp/entry/2022/07/25/100051","categories":[],"description":"https://atcoder.jp/contests/abc239/tasks/abc239_a\u5e73\u65b9\u6839\u3092\u53d6\u308b\u306b\u306f let d = (H * (12800000.0 + H)).sqrt(); \u3068\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u304c\u3001f64\u306e\u30e1\u30bd\u30c3\u30c9\u306a\u306e\u304c\u6c17\u306b\u5165\u3089\u306a\u3044\u306e\u3067\u95a2\u6570\u3092\u81ea\u4f5c\u3057\u307e\u3057\u3087\u3046\u3002 fn sqrt(x: f64) -> f64 { fn f(x: f64, y: f64) -> f64 { let y1 = (y + x / y) / 2.0; if (y1 - y).abs() < y * 1e-9 { y1 } else { f(x, y1) } } f(x, x) } \u95a2\u6570\u5185\u306b\u95a2\u6570\u304c\u4f5c\u308c\u308b\u3093\u3067\u3059\u2026","provider_name":"Hatena Blog","published":"2022-07-25 10:00:51","author_name":"inamori","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2022%2F07%2F25%2F100051\" title=\"AtCoder Beginner Contest 239 A - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}