| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 920889 | zhehan | Trampoline (info1cup20_trampoline) | C++14 | 2054 ms | 19540 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{
int r,c,n,t;
cin>>r>>c>>n;
map<int,int> m;
for(int i{};i<n;++i){
int a,b;
cin>>a>>b;
if(m[a]==0){
m[a]=b;
}else{}
m[a]=min(m[a],b);
}
cin>>t;
for(int i{};i<t;++i){
int x1,x2,y1,y2;
cin>>x1>>y1>>x2>>y2;
if(y1==y2) cout<<"Yes"<<'\n';
else{
bool pass{true};
for(int j{x1};j<x2;++j){
if(!(m[j]>y1&&m[j]<y2)){
pass=false;
}
}
if(pass){
cout<<"Yes"<<'\n';
}else{
cout<<"No"<<'\n';
}
}
}
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
