Submission #966060

# Submission time Handle Problem Language Result Execution time Memory
966060 2024-04-19T10:06:44 Z momo50 Lasers (NOI19_lasers) C++14
0 / 100
33 ms 1076 KB
#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 time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 33 ms 1076 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 33 ms 1076 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -