CE球助
  • 板块灌水区
  • 楼主Nostopathy
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/4/19 19:36
  • 上次更新2024/4/19 19:37:29
查看原帖
CE球助
1286053
Nostopathy楼主2024/4/19 19:36
#include<bits/stdc++.h>
using namespace std;
struct inf1{
	int x,y;
};
struct inf2{
	int h,c;
};
map<inf1,inf2>s;
int main(){
	int n,m,k;
	cin>>n>>m>>k;
	for(int i=1;i<=k;++i){
		inf1 a;
		cin>>a.x>>a.y;
		inf2 b;
		cin>>b.h>>b.c;
		s[a]=b;
	}
	for(int i=1;i<=n;++i){
		for(int j=1;j<=m;++j){
			inf1 p;
			p.x=i,p.y=j;
			inf2 q=s[p];
			cout<<q.c<<' ';
		}
		cout<<'\n';
	}
}

CE了,有dalao帮我看看报错的原因吗,谢谢QAQ

2024/4/19 19:36
加载中...