# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
975904 |
2024-05-06T02:50:55 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
348 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n, m;
cin >> n;
long long ts[n], suka, ans = 0;
for(int i = 0; i < n; i++){
cin >> ts[i];
}cin >> m;
for(int i = 0; i < m; i++){
cin >> suka;
long long isi;
bool cek = true;
for(int j = 0; j < suka; j++){
cin >> isi;
for(int k = 0; k < n; k++){
if(ts[k] == isi){
break;
cek = false;
}
}if(cek == false){
break;
}
}if(cek == true){
ans++;
}
}cout << ans << endl;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |