# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
975547 |
2024-05-05T13:10:55 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
600 KB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define faster ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
signed main(){
int m, tempe;
cin >> m;
set <int> nuhuh;
while (m--){
cin >> tempe;
nuhuh.insert(tempe);
}
int n,tmp,x,sum = 0;
cin >> n;
while (n--){
bool cek = true;
cin >> x;
while(x--){
cin >> tmp;
if(cek){
if(nuhuh.find(tmp)!=nuhuh.end())cek = false;
}
}
if(cek) sum++;
}
cout << sum;
}
# |
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 |
0 ms |
600 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 |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
344 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 |