Submission #480278

#TimeUsernameProblemLanguageResultExecution timeMemory
480278Jarif_RahmanPizza (COCI21_pizza)C++17
50 / 50
1 ms204 KiB
#include <bits/stdc++.h> #define pb push_back #define f first #define sc second using namespace std; typedef long long int ll; typedef string str; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); int n, m, ans = 0; cin >> n; vector<bool> bl(200, 1); while(n--){ int x; cin >> x; bl[x] = 0; } cin >> m; while(m--){ bool bll = 1; int k; cin >> k; while(k--){ int x; cin >> x; bll&=bl[x]; } if(bll) ans++; } cout << ans << "\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...