wuzhuozhongxue @ 2024-12-08 17:05:22
#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
by JDWS999999999 @ 2024-12-10 20:21:52
把y1换成yy试试,y1是函数名
by Luiruixi @ 2024-12-11 21:20:23
你的编译器可能把y1.y2之类的看成函数,最好改成ya.yb.xa.xb成果展示
by wuzhuozhongxue @ 2024-12-15 15:09:51
太好了,RE满天飞
by wuzhuozhongxue @ 2024-12-15 15:10:24
https://www.luogu.com.cn/record/194628086