在东方博宜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;
}