Submission #966060

#TimeUsernameProblemLanguageResultExecution timeMemory
966060momo50Lasers (NOI19_lasers)C++14
0 / 100
33 ms1076 KiB
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int len=0; for(int i=0;i<m;i++) { int k,sum=0; cin>>k; for(int j=0;j<k;j++) { int a; cin>>a; sum+=a; } len=max(len,sum); } cout<<2*len-n; return 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...