#include
#include
using namespace std;
int main()
{ double a,b,c,i, x,y,z;
cin>>a>>b>>c;
cout <<fixed<<setprecision(2)<<endl;
for( i=1;i<=a;i++)
{
x+=i;
}
for(i=1;i<=b;i++)
{
y+=i*i;
}
for( i=1;i<=c;i++)
{
z+=1/i;
}
cout<<x+y+z<<endl;
return 0;
}
运行结果对,交上去显示答案错误
头文件在这里好像显示不出来