# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
9632 | carl111 | Your life (kriii2_Y) | C++98 | 100 ms | 7600 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <vector>
#include <queue>
#include <stdio.h>
using namespace std;
vector< vector<int> > graph;
vector<int> dijkstra(int V, int src)
{
vector<int> dist(V,0x7fffffff);
dist[src] = 0;
priority_queue<pair<int,int> > myqueue;
myqueue.push(make_pair(0,src));
while(!myqueue.empty())
{
int cost = -myqueue.top().first;
int here = myqueue.top().second;
myqueue.pop();
if(cost > dist[here])
{
continue;
}
for(int i=0;i<graph[here].size();i++)
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |