# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
971175 |
2024-04-28T05:53:50 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++ |
|
1 ms |
348 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,M;
cin>>N;
int A[N];
for (int i = 0; i < N; i++)
{
cin>>A[i];
}
cin>>M;
int ans=0;
while (M--)
{
int k;
cin>>k;
int B[k];
for (int i = 0; i < k; i++)
{
cin>>B[i];
}
int sama=0;
for (int i = 0; i < k; i++)
{
for (int j = 0; j < N; j++)
{
if(A[j]==B[i]){
sama++;
}
}
}
if(sama==0){
ans++;
}
}
cout<<ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |