为什么源头文件无法运行???
  • 板块题目总版
  • 楼主chenxuanqi
  • 当前回复4
  • 已保存回复4
  • 发布时间2024/5/4 09:39
  • 上次更新2024/5/4 11:11:14
查看原帖
为什么源头文件无法运行???
1195885
chenxuanqi楼主2024/5/4 09:39
#include<bits/stdc++.h>
using namespace std;
long long n,m,sum,a[12345678900],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;
}
2024/5/4 09:39
加载中...