제출 #1056238

#제출 시각아이디문제언어결과실행 시간메모리
1056238stdfloat도로 폐쇄 (APIO21_roads)C++17
5 / 100
26 ms3792 KiB
#include <bits/stdc++.h> #include "roads.h" using namespace std; using ll = long long; vector<ll> minimum_closure_costs(int n, vector<int> U, vector<int> V, vector<int> W) { sort(W.rbegin(), W.rend()); ll sm = accumulate(W.begin(), W.end(), 0LL); vector<ll> ans(n); for (int i = 0; i < n; i++) { ans[i] = sm; sm -= W[i]; } 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...