# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
729024 | MilosMilutinovic | Passport (JOI23_passport) | C++14 | 1413 ms | 90756 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int inf=0x3f3f3f3f;
int n,q,l[800005],r[800005],dl[800005],dr[800005],dis[800005],idx[200005];
vector<int> g[800005];
void bfs(int* d)
{
set<pair<int,int>> st;
for(int i=1;i<=n;i++) st.emplace(d[i],i);
while(!st.empty())
{
auto it=st.begin();
int x=it->second;
st.erase(it);
if(x<=n)
{
for(int y=idx[x];y>=1;y/=2)
{
if(d[n+y]>d[x])
{
if(st.find({d[n+y],n+y})!=st.end()) st.erase(st.find({d[n+y],n+y}));
d[n+y]=d[x];st.emplace(d[n+y],n+y);
}
}
}
else
{
for(int y:g[x])
컴파일 시 표준 에러 (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... |