我cao,现在的欢乐赛都这么难的吗?
2026-09-05 17:16:51
发布于:浙江
#include<bits/stdc++.h>
using namespace std;
int n , m;
int nonono[1010][1010];
int main()
{
cin >> n >> m;
for (int i = 1;i <= n; i++)
{
for (int j = 1;j <= m; j++)
{
cin >> nonono[i][j];
}
}
long long boy = 0, girl = 1e12;
for (int i = 1; i <= n; i++)
{
long long ohohoh = 0;
for (int j = 1; j <= m; j++)
{
ohohoh += nonono[i][j];
}
if (boy < ohohoh) boy = ohohoh;
if (girl > ohohoh) girl = ohohoh;
}
cout << boy << ' ' << girl << endl;
return 0;
}
全部评论 3
难在哪,不是给你们降难度了吗
2026-09-05 来自 浙江
0?
2026-09-12 来自 浙江
0欢乐赛难度已经下调过了
2026-09-12 来自 浙江
0哦
2026-09-12 来自 浙江
0
😭
2026-09-05 来自 江苏
0没人做吗?
2026-09-05 来自 江苏
0





















有帮助,赞一个