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;
#define int long long
#define pi pair < int, int >
#define pii pair < int, pair < int, int >>
#define endl "\n"
#define debug cout << "AXD" << endl; return 0;
#define pb push_back
const int MAXN = 1e5 + 5;
int n, m;
int s, t, u, v;
vector < pi > adj[MAXN];
signed main(){
ios_base::sync_with_stdio(0); cin.tie(0);
cin >> n >> m >> s >> t >> u >> v;
for ( int i = 1; i <= m; i++){
int x1, x2, x3; cin >> x1 >> x2 >> x3;
adj[x1].pb({x2, x3});
adj[x2].pb({x1, x3});
}
if ( s == u ){
cout << 0 << endl;
}
}
# | 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... |