# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
522984 |
2022-02-06T17:43:32 Z |
tato |
Pizza (COCI21_pizza) |
C++14 |
|
1 ms |
296 KB |
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
void answer()
{
int n,x,m,k,cnt = 0;
cin >> n;
vector <int> v;
for(int i = 1; i <= n; i++)
{
cin >> x;
v.pb(x);
}
cin >> m;
while(m--)
{
cin >> k;
bool ind = true;
for(int i = 1; i <= k; i++)
{
cin >> x;
for(int j = 0; j < n; j++)
if(v[j] == x)
ind = false;
}
if(ind)
cnt++;
}
cout << cnt;
}
int main()
{
int t = 1;
//cin >> t;
while(t--)
answer();
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
292 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
292 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
296 KB |
Output is correct |
2 |
Correct |
1 ms |
288 KB |
Output is correct |