Submission #976306

# Submission time Handle Problem Language Result Execution time Memory
976306 2024-05-06T12:12:02 Z vjudge1 Pizza (COCI21_pizza) C++17
0 / 50
1 ms 348 KB
#include<bits/stdc++.h>
using namespace std;

signed main () {
	int n; cin >> n;
	bool dont[105];
	for(int i=1;i<=n;i++) {
		int a; cin>>a;
		dont[a]=1;
	}
	int m; cin>>m;
	bool add[105];
	memset(add, 1, sizeof add);
	for(int i=1;i<=m;i++){
		int k; cin>>k;
		for(int j=1;j<=k;j++) {
			int a; cin>>a;
			if(dont[a]) add[i]=0;
		}
	}
	
	int ans=0;
	for(int i=1;i<=m;i++) {
		if(add[i]) ans++;
	}
	cout<<ans;
}
# 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 -
# 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 -