# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976275 |
2024-05-06T11:27:42 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
348 KB |
#include <bits/stdc++.h>
#define ll long long
#define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
int main(){
ll n, a[105];
cin>>n;
for(ll i=0; i<n; i++){
cin>>a[i];
}
ll m, k[105], b[105], y=0;
cin>>m;
for(ll i=0; i<m; i++){
cin>>k[i];
ll x=0;
for(ll j=0; j<k[i]; j++){
cin>>b[j];
for(ll h=0; h<n; h++){
if(b[j]==a[h]){
//cout<<i<<' '<<b[j]<<' '<<a[h]<<endl;
break;
}else{
x++;
}
}
//x/=n;
}
if(x==k[i]){
//cout<<x<<endl;
y++;
}
}
cout<<y<<endl;
return 0;
}
# |
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 |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
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 |
1 ms |
348 KB |
Output isn't correct |
2 |
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 |
- |