-->
当前位置:首页 > 题库

PROGRAMMING:Plane vector addition

Luz5年前 (2021-05-10)题库435
This problem requires the preparation of procedures to calculate the sum of two two-dimensional plane vectors.
###Input format:
Enter in one line according to "$$X"_ 1$$ $$y_ 1$$ $$x_ 2$$ $$y_ Two two-dimensional plane vectors are given in the form of "2 $$"_ 1=(x_ 1, y_ 1) $$and $$V_ 2=(x_ 2, y_ 2) The weight of $$.
###Output format:
Output sum vector in the format of '(x, y)'In one line, and output one decimal place after the coordinate point (note that $$- 0.0 $$) cannot be output).
###Input example:
```in
3.5 -2.7 -13.9 8.7
```
###Output example:
```out
(-10.4, 6.0)
```






answer:If there is no answer, please comment