| 比赛 | EYOI与SBOI开学欢乐赛5th | 评测结果 | WWWAWWWAWA |
|---|---|---|---|
| 题目名称 | 积木游戏 | 最终得分 | 30 |
| 用户昵称 | 该账号已注销 | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.00 MiB |
| 提交时间 | 2022-09-16 21:40:47 | ||
#include<bits/stdc++.h>
using namespace std;
struct abc{
int a,b,c;
}lft[110];
int n,m,ans=0;
int main(){
freopen("buildinggame.in","r",stdin);
freopen("buildinggame.out","w",stdout);
cin>>n>>m;
for(int i=1;i<=n;i++){
cin>>lft[i].a>>lft[i].b>>lft[i].c;
ans+=max(lft[i].a,max(lft[i].b,lft[i].c));
}
cout<<ans<<endl;
return 0;
}