Submission #681491

#TimeUsernameProblemLanguageResultExecution timeMemory
681491coding_snorlaxLet's Win the Election (JOI22_ho_t3)C++14
5 / 100
1 ms348 KiB
#include<bits/stdc++.h> using namespace std; vector<int> List; int N,K,tmp,tmp2; int main(){ cin>>N>>K; for(int i=1;i<=N;i++){ cin>>tmp>>tmp2; List.push_back(tmp); } sort(List.begin(),List.end()); int answer = 0; for(int i=0;i<K;i++){ answer += List[i]; } cout<<answer; }
#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...