C++11:为什么只得到了70pts??
查看原帖
C++11:为什么只得到了70pts??
977778
__Harry_Haiyun__楼主2023/7/3 16:02

Code:

#include <bits/stdc++.h>
#define mod 1000000007
using namespace std;
int main()
{
	int n;
	cin >> n;
	int j;
	double p,sum = 0;
	for (int i = 1; i <= n; i++)
	{
		cin >> p >> j;
		sum += p * 0.85 * j;
	}
	printf("%.1lf",sum);
	return 0;
}
2023/7/3 16:02
加载中...