2022-07-30から1日間の記事一覧

AtCoder Beginner Contest 258 B

https://atcoder.jp/contests/abc258/tasks/abc258_b違う型を掛けるにはこうします。 impl Mul<i32> for Point { type Output = Self; fn mul(self, c: i32) -> Self { Self { x: self.x * c, y: self.y * c } } } いちばん大きい数字のマスから辿っていますが、</i32>…