제출 #1008938

#제출 시각아이디문제언어결과실행 시간메모리
1008938makanhuliaCommuter Pass (JOI18_commuter_pass)C++17
0 / 100
58 ms16940 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...