照着给出的公式写即可。 C++复制#include<cstdio> #include<cmath> int a[200000]; int main(){ double x_,y_; int x,y; scanf("%d %d",&x,&y); x_=x*0.5+y*0.5; y_=sqrt(3)/2*x-sqrt(3)/2*y; printf("%.6lf %.6lf",x_,y_); return 0; }