求助
  • 板块灌水区
  • 楼主Quartz_Blocks
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/4/19 19:32
  • 上次更新2024/4/19 19:41:05
查看原帖
求助
1059176
Quartz_Blocks楼主2024/4/19 19:32

Nothing is compiled: OUTPUT exceeds.

CE了,怎么回事 本地能过 题目

#include <iostream>
using namespace std;
struct node{
	int c = 0,h = 1000000010;
}a[1010][1010];
int n,m,k,x,y,h,c;
int main(){
	cin >> n >> m >> k;
	for(int i = 1;i <= k;i++){
		cin >> x >> y >> h >> c;
		if(a[x][y].h > h){
			a[x][y].h = h;
			a[x][y].c = c;
		}
	}
	for(int i = 1;i <= n;i++){
		for(int j = 1;j <= m;j++){
			cout << a[i][j].c << ' ';
		}
		cout << endl;
	}
	return 0;
}
2024/4/19 19:32
加载中...