# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976434 |
2024-05-06T14:52:26 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
448 KB |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N, M;
cin >> N;
int A[N+5];
for (int i=0; i<N; i++) cin >> A[i];
cin >> M;
int K[M+5];
int illegal = 0;
for (int i=0; i<M; i++)
{
cin >> K[i];
int countNot = 0;
for (int j=0; j<K[i]; j++)
{
int temp; cin >> temp;
for (int k=0; k<N; k++)
{
if (A[k] == temp)
{
countNot++;
break;
}
}
}
if (countNot > 0) illegal++;
}
cout << M-illegal;
}
# |
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 |
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 |
448 KB |
Output is correct |
2 |
Correct |
1 ms |
344 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 |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |