感觉逻辑没错,可就是编译失败,在c++说源头文件无法编译
by chenxuanqi @ 2024-05-04 09:40:51
@[chenxuanqi](/user/1195885) 数组开太大啦
by czx6666 @ 2024-05-04 09:40:54
```
#include<bits/stdc++.h>
using namespace std;
long long n,m,sum,a[123456789],b,ans;
int main(){
cin>>n>>m;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cin>>a[j];
if(a[j]>b){
b=a[j];
ans=j;
}
}
for(int j=1;j<ans;j++){
if(a[j]!=0){
if(a[j]<b) sum++;
}
}
cout<<ans<<sum;
}
return 0;
}
```
by czx6666 @ 2024-05-04 09:41:19
求关 @[chenxuanqi](/user/1195885)
by czx6666 @ 2024-05-04 09:48:26