# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
743024 |
2023-05-17T07:28:34 Z |
vjudge1 |
Lasers (NOI19_lasers) |
C++17 |
|
18 ms |
320 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);
int cnt = 0;
for(int i=1;i<=r;++i)
{
int n; cin >> n;
while(n--)
{
int len; cin >> len;
if(len == 1) ++cnt;
}
}
if(cnt >= l) cout << l << '\n';
else if(cnt > l/2) cout << cnt-l/2;
else cout << "0";
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 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 |
0 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 |
18 ms |
320 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 |
18 ms |
320 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |