回答編集履歴

1

コード修正

2022/01/11 07:54

投稿

int32_t
int32_t

スコア20927

test CHANGED
@@ -24,6 +24,8 @@
24
24
 
25
25
  add(other) {
26
26
 
27
+ console.assert(other instanceof Vector);
28
+
27
29
  return new Vector(this.x + other.x, this.y + other.y);
28
30
 
29
31
  }