编辑代码

#include <stdio.h>
struct Vec {
    double x, y;
};
int main(){
    struct Vec v1, v2;
    double x,y;
    scanf("%lf %lf %lf %lf", &v1.x, &v1.y, &v2.x, &v2.y);
    x = v1.x + v2.x;
    y = v1.y + v2.y;
    if ((x>-0.05) && (x<0)) x = 0.0;
    if ((y>-0.05) && (y<0)) y = 0.0;
    printf("(%.1f, %.1f)", x, y);
    return 0;
}