已采纳 褚福磊 新手光能 核心代码: double S; int x,y,s; cin>>x>>y; s=x*y-16; S=sqrt(s); printf("%.1lf",S); 不要忘记加<cmath>