20分求助!!!

P2393 yyy loves Maths II

这道题很坑 ```cpp #include<bits/stdc++.h> using namespace std; int main() { // freopen("1.in","r",stdin); long double ans; long double x; ans = 0; while(cin>>x){ ans = ans+x*1000000; } printf("%.5Lf",ans/1000000); return 0; } ``` 具体你可以看一下 $long$ $double$ 的使用
by CSPAK_Zhangxiuqi0011 @ 2023-10-29 15:29:13


|