# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
915626 | SalihSahin | Osumnjičeni (COCI21_osumnjiceni) | C++14 | 561 ms | 31492 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define pb push_back
#define mp make_pair
using namespace std;
const int mod = 998244353;
int main(){
cin.tie(0); cout.tie(0);
ios_base::sync_with_stdio(false);
int n;
cin>>n;
pair<int, int> a[n];
for(int i = 0; i < n; i++){
cin>>a[i].first>>a[i].second;
}
int K = 18, r = 0;
set<pair<int, int> > op;
int lift[K][n+1];
for(int l = 0; l < n; l++){
while(r < n){
bool ok = 1;
if(op.size()){
auto it = op.lower_bound(a[r]);
if(it != op.end() && (*it).first <= a[r].second) ok = 0;
if(it != op.begin()){
it--;
# | 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... |