제출 #951295

#제출 시각아이디문제언어결과실행 시간메모리
951295NourWaelFirefighting (NOI20_firefighting)C++17
0 / 100
8 ms14940 KiB
#include <bits/stdc++.h> #define int long long using namespace std; int const mxN = 3e5+5; int n; vector<pair<int,int>> adj [mxN]; signed main() { ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL); cin>>n; for(int i=0; i<n-1; i++) { int a,b,c; cin>>a>>b>>c; adj[a].push_back({b,c}), adj[b].push_back({a,c}); } cout<<n<<'\n'; for(int i=1; i<=n; i++) cout<<i<<' '; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...