- 计算鞍点
巴卡玛卡(错到神志不清)
- 2024-1-5 17:52:45 @
#include <bits/stdc++.h>
using namespace std;
int a[5][5];
int main()
{
int b,c,d=1,e;
for(int i=0;i<5;i++)
{
for(int j=0;j<5;j++)
{
cin>>a[i][j];
}
}
for(int i=0;i<5;i++)
{
for(int j=0;j<5;j++)
{
if(a[i][j]>b)
{
b=a[i][j];
c=j;
e=i;
}
}
for(int v=0;v<5;v++)
{
if(b>a[v][c])
{
d=0;
break;
}
}
}
if(d=0)cout<<"not"<<" "<<"found";
else cout<<e<<' '<<c<<' '<<b;
}
1 comments
-
经开一中2026届11班关泽瑞 LV 6 @ 2024-1-7 10:46:14
不对😔你应该"巴卡亚卡尼卡亚卡乌卡轰"😄
- 1
Information
- ID
- 602
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 49
- Accepted
- 34
- Uploaded By