# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
808275 |
2023-08-05T05:36:11 Z |
Tunglam07 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
360 KB |
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n, m, ans = 0, id, id2;
cin >> n;
bool ck[100001], ch;
for(int i = 0; i < n; i++)
{
cin >> id;
ck[id] = 1;
}
cin >> m;
for(int i = 0; i < m; i++)
{
ch = 0;
cin >> id;
for(int j = 0; j < id; j++)
{
cin >> id2;
if(ck[id2])
{
ch = 1;
}
}
if(!ch)
{
ans++;
}
}
cout << ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
360 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |