# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
932499 | andrei_boaca | Worst Reporter 4 (JOI21_worst_reporter4) | C++17 | 409 ms | 75196 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> pll;
const ll INF=1e17;
map<ll,ll> nrm;
ll nr;
vector<ll> muchii[200005];
ll n,par[200005],v[200005],cost[200005];
set<pll> setik[200005];
void add(ll nod,ll poz,ll val)
{
auto it=setik[nod].lower_bound({poz,0});
if((*it).first==poz)
{
ll x=(*it).second+val;
setik[nod].erase(it);
setik[nod].insert({poz,x});
}
else
setik[nod].insert({poz,val});
}
void dfs(ll nod)
{
if(muchii[nod].empty())
{
add(nod,v[nod]+1,cost[nod]);
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... |