Submission #824367

#TimeUsernameProblemLanguageResultExecution timeMemory
824367petezaLet's Win the Election (JOI22_ho_t3)C++14
5 / 100
1 ms212 KiB
#include <bits/stdc++.h> using namespace std; int n, k; int a[1005], b[1005]; int main() { cin >> n >> k; for(int i=0;i<n;i++) { cin >> a[i] >> b[i]; } sort(a, a+n); cout << accumulate(a, a+k, 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...
#Verdict Execution timeMemoryGrader output
Fetching results...