# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
372857 |
2021-03-02T04:28:32 Z |
sam571128 |
Pizza (COCI21_pizza) |
C++14 |
|
1 ms |
364 KB |
#include <bits/stdc++.h>
#define int long long
#define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
signed main(){
fastio
int n;
cin >> n;
set<int> s;
int ans = 0;
for(int i = 0;i < n;i++){
int x;
cin >> x;
s.insert(x);
}
int m;
cin >> m;
while(m--){
int nn;
cin >> nn;
bool can = 1;
for(int i = 0;i < nn;i++){
int tmp;
cin >> tmp;
if(!can) continue;
if(s.find(tmp)!=s.end()) can = 0;
}
ans += can;
}
cout << ans << "\n";
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
1 ms |
364 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
1 ms |
364 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
1 ms |
364 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
1 ms |
364 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
1 ms |
364 KB |
Output is correct |