# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
499354 | ismoilov | Evacuation plan (IZhO18_plan) | C++14 | 662 ms | 60476 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 long long ll;
#define IOS ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define all(x) (x).rbegin(), (x).rend()
#define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
#define fpp(a,i,c) for(int (a) = (i); (a) <= (c); (a)++)
#define fm(a,i,c) for(int (a) = (i); (a) > (c); (a)--)
#define fmm(a,i,c) for(int (a) = (i); (a) >= (c); (a)--)
const int maxx = 1e5+5;
vector <pair<int, int>> g[maxx];
set <int> u[maxx];
int d[maxx], s[maxx];
int getp(int x){
return s[x] == x ? x : s[x] = getp(s[x]);
}
void S()
{
int n, m;
cin >> n >> m;
fp(i,0,n)
d[i] = INT_MAX;
fp(i,0,m){
int x, y, w;
cin >> x >> y >> w;
x --, y --;
g[x].push_back({w, y});
g[y].push_back({w, x});
}
priority_queue <pair<int, int>> q;
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... |