Submission #729270

#TimeUsernameProblemLanguageResultExecution timeMemory
729270tch1cherinLet's Win the Election (JOI22_ho_t3)C++17
5 / 100
1 ms316 KiB
#include <bits/stdc++.h> using namespace std; void solve() { int n, k; cin >> n >> k; vector<int> a(n), b(n); for (int i = 0; i < n; i++) { cin >> a[i] >> b[i]; } sort(a.begin(), a.end()); long double ans = 0; for (int i = 0; i < k; i++) { ans += a[i]; } cout << ans << "\n"; } int main() { cout << fixed << setprecision(9); ios::sync_with_stdio(false); cin.tie(nullptr); solve(); }
#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...