当前位置:网站首页>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?
- How can I get the Commission discount of stock trading account opening? Is it safe to open an account online
- ESP Arduino playing with peripherals (V) basic concept of interrupt and timer interrupt
- Op amp related - link
- Cgb2201 preparatory class evening self-study and lecture content
- 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
- P3371 [template] single source shortest path (weakened version)
- Open 2022 efficient office, starting from project management
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Investment demand and income forecast report of China's building ceramics industry, 2022-2028
猜你喜欢

Amway by head has this project management tool to improve productivity in a straight line

Tencent interview: can you find the number of 1 in binary?

The first game of the new year, many bug awards submitted

Entropy and full connection layer

Idea integrates Microsoft TFs plug-in

Current detection circuit - including op amp current scheme

A method to solve Bert long text matching

Alibaba cloud container service differentiation SLO hybrid technology practice

Investment demand and income forecast report of China's building ceramics industry, 2022-2028

Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition
随机推荐
Briefly understand the operation mode of developing NFT platform
A method to solve Bert long text matching
NLP Chinese corpus project: large scale Chinese natural language processing corpus
Make small tip
P1339 [USACO09OCT]Heat Wave G
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
The first game of the new year, many bug awards submitted
Correlation analysis summary
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
STM32 GPIO CSDN creative punch in
Iclr2022: how does AI recognize "things I haven't seen"?
Docking Alipay process [pay in person, QR code Payment]
SQL data update
JDBC Technology
Loop compensation - explanation and calculation of first-order, second-order and op amp compensation
P1656 bombing Railway
Gossip about redis source code 76
Op amp related - link
Enter MySQL in docker container by command under Linux
[BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-