当前位置:网站首页>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");
}
}
边栏推荐
- How can I get the Commission discount of stock trading account opening? Is it safe to open an account online
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- China standard gas market prospect investment and development feasibility study report 2022-2028
- Alibaba cloud container service differentiation SLO hybrid technology practice
- P1656 bombing Railway
- [Happy Valentine's day] "I still like you very much, like sin ² a+cos ² A consistent "(white code in the attached table)
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- D26: the nearest number (translation + solution)
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Gossip about redis source code 79
猜你喜欢

Solve the problem that the kaggle account registration does not display the verification code

Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition

Yyds dry goods inventory three JS source code interpretation - getobjectbyproperty method

It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something

A method to solve Bert long text matching

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

Common mode interference of EMC

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?

Smart fan system based on stm32f407

Alibaba cloud container service differentiation SLO hybrid technology practice
随机推荐
What are the securities companies with the lowest Commission for stock account opening? Would you recommend it? Is it safe to open an account on your mobile phone
Is the low commission link on the internet safe? How to open an account for China Merchants Securities?
How to understand the gain bandwidth product operational amplifier gain
Fluent learning (5) GridView
Gossip about redis source code 79
What is the difference between NFT, SFT and dnft? How to build NFT platform applications?
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
Gossip about redis source code 75
股票開戶傭金最低的券商有哪些大家推薦一下,手機上開戶安全嗎
2/14 (regular expression, sed streaming editor)
JDBC Technology
Selenium library 4.5.0 keyword explanation (III)
Open 2022 efficient office, starting from project management
2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
P1629 postman delivering letter
Maxwell equation and Euler formula - link
The upload experience version of uniapp wechat applet enters the blank page for the first time, and the page data can be seen only after it is refreshed again
I wrote a chat software with timeout connect function
Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing