제출 #570126

#제출 시각아이디문제언어결과실행 시간메모리
570126Garguy22도로 폐쇄 (APIO21_roads)C++17
5 / 100
57 ms3800 KiB
#include <bits/stdc++.h> #include <vector> #include <algorithm> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; #define pb push_back vl minimum_closure_costs(int N, vi U, vi V, vi W){ ll temp = 0; vl ans; sort(W.begin(), W.end()); ans.pb(0); for(int i = 0; i < N-1; i++){ temp += W[i]; ans.pb(temp); } reverse(ans.begin(), ans.end()); return ans; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...