神踏马猎奇。。。
查看原帖
神踏马猎奇。。。
1310088
jsly8750楼主2024/12/21 22:07

在东方博宜AC了,但是在洛谷错了5和6样例。。。 80分代码:

#include<bits/stdc++.h>
#define endl "\n"
#define IO ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
typedef long long ll;
using namespace std;
int n;
int main()
{
	IO;
	cin>>n;
	double mxs=-1;
	while(n--){
		double a,b,c;
		cin>>a>>b>>c;
		mxs=max(mxs,((a+b)*c/2));
	}
	printf("%.1f",mxs);
	return 0;
}


2024/12/21 22:07
加载中...