# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
426619 | TLP39 | Hotspot (NOI17_hotspot) | C++14 | 1076 ms | 1180 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<bits/stdc++.h>
using namespace std;
typedef pair<int,pair<int,int>> pii;
int n,m,k;
vector<int> adj[5003];
int shortest_path[2][5003];
int num_shortest_path[2][5003];
bool marked[2][5003];
double final[5003];
void bfs(int a,int pos)
{
for(int i=0;i<n;i++)
{
marked[pos][i]=false;
shortest_path[pos][i]=1000000;
num_shortest_path[pos][i]=0;
}
queue<int> q;
int temp;
q.push(a);
marked[pos][a]=true;
shortest_path[pos][a]=0;
num_shortest_path[pos][a]=1;
while(!q.empty())
{
temp=q.front();
q.pop();
for(int i=0;i<adj[temp].size();i++)
Compilation message (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |