# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
195628 | jovan_b | 악어의 지하 도시 (IOI11_crocodile) | C++17 | 1402 ms | 86472 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "crocodile.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll dist1[100005];
ll dist2[100005];
bool ext[100005];
const int MX = 1000000007;
int n;
vector <pair <int, ll>> graf[100005];
set <pair <ll, int>> q;
void sp(){
for(int i=1; i<=n; i++){
if(ext[i]) dist2[i] = 0;
else dist2[i] = MX;
dist1[i] = dist2[i];
q.insert({dist2[i], i});
}
while(!q.empty()){
int v = q.begin()->second;
q.erase(q.begin());
if(v == 1) return;
for(auto pr : graf[v]){
int c = pr.first;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |