- ACM
所有阶段二学完的同学,都来挑战这道题!
- 2024-7-20 22:51:19 @
铺地毯,题目在下面
10 comments
-
谢煜龙 LV 6 @ 2024-8-11 0:58:28
!
-
2024-7-21 11:12:28@
老登 你教过
-
2024-7-20 23:32:22@
黑子说话
-
2024-7-20 23:32:08@
-
2024-7-20 23:26:52@
#include <bits/stdc++.h>
using namespace std; int n; int a[10006][10006]; int main(){ cin>>n; for(int k=1;k<=n;k++){ int c,d,x,y; cin>>c>>d>>x>>y; for(int i=c;i<=c+x;i++){ for(int j=d;j<=d+y;j++){ a[i][j]=k; } } } int x,y; cin>>x>>y; if(a[x][y]==0) printf("-1"); else cout<<a[x][y]; return 0; }
-
2024-7-20 23:18:35@
怎么刷题啊
🤡 1 -
2024-7-20 22:53:08@
留下你的代码,不能抄袭!不能开挂!作弊直接0分!
🤡 4 -
2024-7-20 22:52:36@🤡 1
-
2024-7-20 22:52:19@🤣 1
-
2024-7-20 22:51:57@👎 1
- 1