壶关求解WA95
查看原帖
壶关求解WA95
1612100
封禁用户楼主2025/8/1 21:37
#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long int n;
	double h;
	cin>>n;
	while(n--)
	{
		double k;
		cin>>k;
		h+=k;
		cout<<fixed<<setprecision(2)<<h<<endl;
		h=h*1.00005;
		h=(long long int)(h*100)/100.0;
	}
}
2025/8/1 21:37
加载中...