{"provider_name":"Hatena Blog","type":"rich","width":"100%","blog_title":"inamori\u2019s diary","version":"1.0","image_url":null,"author_url":"https://blog.hatena.ne.jp/inamori/","categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2022%2F07%2F07%2F210228\" title=\"AtCoder Beginner Contest 250 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>","blog_url":"https://inamori.hateblo.jp/","author_name":"inamori","url":"https://inamori.hateblo.jp/entry/2022/07/07/210228","published":"2022-07-07 21:02:28","provider_url":"https://hatena.blog","description":"https://atcoder.jp/contests/abc250/tasks/abc250_a\u5ea7\u6a19\u306e\u554f\u984c\u306a\u306e\u3067\u3001Point\u3068\u3044\u3046\u69cb\u9020\u4f53\u3092\u4f5c\u308a\u307e\u3059\u3002 struct Point { x: i32, y: i32, } \u8981\u7d20\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u4e26\u3079\u308b\u3060\u3051\u3067\u3059\u3002 \u30e1\u30bd\u30c3\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002 impl Point { fn add(&self, other: &Point) -> Point { Point { x: self.x + other.x, y: self.y + other.y } } } \u5f15\u6570\u306b&self\u304c\u8981\u308b\u3093\u3067\u3059\u306d\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u306e\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002 let pt = Poi\u2026","title":"AtCoder Beginner Contest 250 A","height":"190"}