Submission #648180

#TimeUsernameProblemLanguageResultExecution timeMemory
648180baibhav26062008Let's Win the Election (JOI22_ho_t3)C++14
5 / 100
1 ms212 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n,k; cin >> n >> k; int a[n],b[n]; for (int i = 0; i < n; i++) { cin >> a[i] >> b[i]; } sort(a,a+n); double h = 0.00; for (int i = 0; i < k; i++) { h += a[i]; } cout << h << endl; }
#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...