当前位置:网站首页>CSP window
CSP window
2022-07-03 23:56:00 【< WRM>】
#include<bits/stdc++.h>
using namespace std;
const int N=50;
struct node {
int x1,y1,x2,y2;
int level;
int number;
}a[N];
bool compare (node x,node y) {
return x.level>y.level;
}
int main() {
int n,m;
scanf("%d%d",&n,&m);
for(int i=1;i<=n;i++) {
scanf("%d%d%d%d",&a[i].x1,&a[i].y1,&a[i].x2,&a[i].y2);
a[i].level=i;
a[i].number=i;
}
for(int i=1;i<=m;i++) {
int x,y;
scanf("%d%d",&x,&y);
sort(a+1,a+n+1,compare);
int flag=0;
for(int j=1;j<=n;j++) {
if(x>=a[j].x1&&x<=a[j].x2&&y>=a[j].y1&&y<=a[j].y2) {
printf("%d\n",a[j].number);
a[j].level=a[1].level+1;
flag=1;
break;
}
}
if(!flag) printf("IGNORED\n");
}
}
边栏推荐
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Entropy and full connection layer
- Advanced C language - pointer 2 - knowledge points sorting
- D29:post Office (post office, translation)
- SQL data update
- D23:multiple of 3 or 5 (multiple of 3 or 5, translation + solution)
- 2022 system integration project management engineer examination knowledge points: software development model
- Yyds dry goods inventory three JS source code interpretation - getobjectbyproperty method
- Introducing Software Testing
猜你喜欢
How to quickly build high availability of service discovery
[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections
JDBC Technology
STM32 GPIO CSDN creative punch in
Correlation analysis summary
Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition
NLP Chinese corpus project: large scale Chinese natural language processing corpus
Unity elementary case notes of angry birds Siki college 1-6
Tencent interview: can you pour water?
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
随机推荐
D30:color tunnels (color tunnels, translation)
P3371 [template] single source shortest path (weakened version)
2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) simulated examination and Guangdong Provincial Safety Officer a certificate third batch (main person in charg
How can I get the Commission discount of stock trading account opening? Is it safe to open an account online
X Opencv feature point detection and matching
Advanced C language - pointer 2 - knowledge points sorting
ESP Arduino playing with peripherals (V) basic concept of interrupt and timer interrupt
FPGA tutorial and Allegro tutorial - link
IO flow principle and classification
Vscode regular match replace console log(.*)
Alibaba cloud container service differentiation SLO hybrid technology practice
Learning methods of zynq
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
Pandaoxi's video
想请教一下,十大劵商如何开户?在线开户是安全么?
After the Lunar New Year and a half
Introducing Software Testing
Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing
JDBC Technology
How to quickly build high availability of service discovery