# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
991601 |
2024-06-02T15:08:53 Z |
gutzzy |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
348 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,m,k,b;
cin >> n;
vector<bool> a(101,false);
for(int i=0;i<n;i++){
cin >> k;
a[k] = true;
}
cin >> m;
int ans = 0;
while(m--){
cin >> k;
bool pos = true;
for(int i=0;i<k;i++){
cin >> b;
if(!pos) continue;
if(a[b]) pos = false;
}
if(pos) ans++;
}
cout << ans << endl;
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 |
0 ms |
344 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 |
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 |