# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
978343 |
2024-05-09T06:39:11 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
504 KB |
#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main(){
int n; cin>>n;
int a[n];
for(int i=0;i<n;i++) cin>>a[i];
int m; cin>>m;
int sum=0;
while(m--){
int t; cin>>t;
int arr[t];
for(int i=0;i<t;i++) cin>>arr[i];
bool cn=true;
for(int i=0;i<t;i++) for(int j=0;j<n;j++) if(a[j]==arr[i]){cn=false; break;}
if(cn) sum++;
}
cout<<sum<<endl;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
436 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 |
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 |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
428 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
504 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |