# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
797460 | kingfran1907 | Segments (IZhO18_segments) | C++14 | 5079 ms | 11388 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define X first
#define Y second
using namespace std;
const int maxn = 2e5+10;
int n, t;
set< int > s, cur;
int l[maxn], r[maxn];
int inter(pair<int, int> a, pair<int, int> b) {
if (a.X > b.X) swap(a, b);
return min(a.Y, b.Y) - b.X + 1;
}
int main() {
scanf("%d%d", &n, &t);
for (int i = 1; i <= n + 2; i++) s.insert(i);
int lastans = 0;
int ptr = 0;
while (n--) {
int type;
scanf("%d", &type);
if (type == 1) {
int ind = ++ptr;
int l, r;
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |