Submission #965952

# Submission time Handle Problem Language Result Execution time Memory
965952 2024-04-19T08:39:19 Z nam_ntmp Lasers (NOI19_lasers) C++17
0 / 100
376 ms 1528 KB
#include <bits/stdc++.h>
using namespace std;

int main(){
    int l,r;
    cin>>l>>r;
    // sub 1
    while(r--){
        int X;
        cin>>X;
        while(X--){
            int len;
            cin>>len;
            if(len*2 < l){
                cout<<"0\n";
            } else {
                cout<<l-(len*2)+1<<"\n";
            }
        }
    }
}

/*
10 1 
1 4

10 1 
1 5
*/
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 376 ms 1528 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 376 ms 1528 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 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -