当前位置:网站首页>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?
- Schematic diagram of crystal oscillator clock and PCB Design Guide
- 2022 a special equipment related management (elevator) examination questions and a special equipment related management (elevator) examination contents
- SQL data update
- 2022.02.14
- The first game of the new year, many bug awards submitted
- 【leetcode】374. Guess the size of the number
- Correlation analysis summary
- [network security] what is emergency response? What indicators should you pay attention to in emergency response?
- Iclr2022: how does AI recognize "things I haven't seen"?
猜你喜欢

How will the complete NFT platform work in 2022? How about its core functions and online time?

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

Common mode interference of EMC

2022 t elevator repair registration examination and the latest analysis of T elevator repair

Kubedl hostnetwork: accelerating the efficiency of distributed training communication

X Opencv feature point detection and matching

Idea integrates Microsoft TFs plug-in

Unity shader visualizer shader graph

Fluent learning (5) GridView

Investment demand and income forecast report of China's building ceramics industry, 2022-2028
随机推荐
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
【leetcode】374. Guess the size of the number
[Mongodb] 2. Use mongodb --------- use compass
It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
Zipper table in data warehouse (compressed storage)
2/14 (regular expression, sed streaming editor)
Vscode regular match replace console log(.*)
Ramble 72 of redis source code
The difference between single power amplifier and dual power amplifier
Gossip about redis source code 76
Schematic diagram of crystal oscillator clock and PCB Design Guide
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections
Gossip about redis source code 83
Gorilla/mux framework (RK boot): add tracing Middleware
"Learning notes" recursive & recursive
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
Investment demand and income forecast report of China's building ceramics industry, 2022-2028
Solve the problem that the kaggle account registration does not display the verification code