Submission #743017

# Submission time Handle Problem Language Result Execution time Memory
743017 2023-05-17T07:25:43 Z vjudge1 Lasers (NOI19_lasers) C++17
0 / 100
25 ms 1100 KB
#include<bits/stdc++.h>
using namespace std;

int l,r;

int main()
{
    cin >> l >> r;
    ios_base::sync_with_stdio(0); cin.tie(0);
    for(int i=1;i<=r;++i)
    {
        int n; cin >> n;
        while(n--)
        {
            int len; cin >> len;
            if(len < l/2) cout << "0\n";
            else if(len > l/2) cout << abs(len-l/2) << '\n';
        }
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 25 ms 1100 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 25 ms 1100 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -