# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
975967 |
2024-05-06T04:07:10 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
596 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n, m;
cin >> n;
bool ts[101];
memset(ts, false, sizeof(ts));
long long t;
for(int i = 0; i < n; i++){
cin >> t;
ts[t] = true;
}cin >> m;
long long k, ans = 0;
for(int i = 0; i < m; i++){
cin >> k;
long long c[k];
bool cek = true;
for(int j = 0; j < k; j++){
cin >> c[j];
}for(int j = 0; j < k; j++){
if(ts[c[j]] == true){
cek = false;
break;
}
}
if(cek == true){
ans++;
}
}cout << ans << endl;
}
# |
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 |
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 |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
596 KB |
Output is correct |
2 |
Correct |
1 ms |
344 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 |