# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976222 |
2024-05-06T10:11:12 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
348 KB |
#include<bits/stdc++.h>
#define suhu ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define fi first
#define se second
#define pb push_back
using namespace std;
typedef long long ll;
const ll MAXN=2505;
const ll mod=1e9+7;
ll m,n,a[MAXN],k[MAXN];
int main(){
suhu
cin>>n;
for(int i=1;i<=n;i++){
ll x;cin>>x;
a[x]++;
}
ll ans=0;
cin>>m;
for(int i=1;i<=m;i++){
bool fo=1;
ll x;cin>>x;
for(int j=1;j<=x;j++){
ll y;cin>>y;
if(a[y]==1)fo=0;
}
if(fo)ans++;
}
cout<<ans<<"\n";
return 0;
}
# |
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 |
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 |
0 ms |
344 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 |