# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
979677 | temporary1 | Passport (JOI23_passport) | C++17 | 624 ms | 78876 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define f first
#define s second
vector<pair<int,int>> graph[800001];
int dist[3][800001];
int node[200001];
int max1 = 0;
priority_queue<pair<int,int>, vector<pair<int,int>>, greater<pair<int,int>>> pq;
int build(int n, int a, int b) {
if (a == b) {
max1 = max(max1,n);
return node[a] = n;
}
graph[build(2*n,a,(a+b)/2)].push_back({n,0});
graph[build(2*n+1,(a+b)/2+1,b)].push_back({n,0});
return n;
}
void upd(int n, int a, int b, int x, int y, int k) {
if (a > b || b < x || y < a)return;
if (x <= a && b <= y) {
graph[n].push_back({k,1});
return;
}
컴파일 시 표준 에러 (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... |