# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976192 |
2024-05-06T09:24:57 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
600 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
int n; cin >> n;
bool nlike[102];
memset(nlike, 0, sizeof(nlike));
while(n--) {
int t; cin >> t;
nlike[t] = true;
}
int m; cin >> m;
//cout << m << " mmm\n"; //!akjsfh
int ans = 0;
while(m--){
//cout << m << "<m\n";
//cout <<"here\n";
int k; cin >> k;
bool beli = 1;
//cout << beli << "<beli\n";
while(k--){
int a; cin >> a;
if(nlike[a]) {
beli = 0;
}
}
ans += beli;
}
cout << ans;
return 0;
}
# |
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 |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
600 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 |