Submission #1100487

# Submission time Handle Problem Language Result Execution time Memory
1100487 2024-10-14T05:14:57 Z vjudge1 Pizza (COCI21_pizza) C++17
50 / 50
1 ms 340 KB
#include <bits/stdc++.h>
#define int long long
using namespace std;

signed main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	
	int n; cin >> n;
	map <int, int> mp;
	while(n--){
		int num; cin >> num;
		mp[num] = 1;
	}

	int ans = 0;
	int k; cin >> k;
	while(k--){
		cin >> n;
		bool have = 1;
		while(n--){
			int num; cin >> num;
			if(mp[num])have = 0;
		}

		if(have)ans++;
	}

	cout << ans << endl;

	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct