# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
974634 |
2024-05-03T14:45:17 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
348 KB |
#include "bits/stdc++.h"
using namespace std;
#define int long long
#define MOD 1000000007
#define pii pair<int , int>
#define sz size
#define pb push_back
#define se second
#define fi first
const int INF = 1e18;
signed main(){
int n; cin >> n;
bool flag[105] = {};
for(int i = 0; i < n; i++){
int x; cin >> x;
flag[x] = 1;
}
int ans = 0;
int m; cin >> m;
while(m--){
int k; cin >> k;
bool ok = 1;
for(int i = 0; i < k; i++){
int x; cin >> x;
if(flag[x]){
ok = 0;
}
}
if(ok) ans++;
}
cout << ans;
return 0;
}
# |
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 |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
1 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 |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |