蒻蒟求调
查看原帖
蒻蒟求调
1532169
wuzhouzhongxue楼主2024/12/8 17:05
#include<bits/stdc++.h>
using namespace std;
int  a[1000][1000];
int n,m;
int main()
{
cin>>n>>m;
for(int i=0;i<m;i++)
{
	int x1,x2,y1,y2;
	cin>>x1>>y1>>x2>>y2;
	for(int j=x1;j<=x2;j++)
	{
		for(int k=y1;k<=y2;k++)
		{
			a[j][k]++;
		}
	}
}
for(int j=1;j<=n;j++)
{
	for(int k=1;k<=n;k++)
	{
		cout<<a[j][k]<<" ";

	}
	cout<<endl;
}
return 0;
}

老师我恨你,为什么RE https://www.luogu.com.cn/record/193562548

2024/12/8 17:05
加载中...