Submission #7520219


Source Code Expand

Copy
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <algorithm>
#include <string>
#include <iostream>
#include <complex>
#include <ctime>
#include <cmath>
#include <cstdio>
#include <stack>
#include <map>
#include <list>
#include <queue>
#include <deque>
#include <random>
#include <set>
#include <vector>
#include <unordered_map>
#include <bitset>
#include <unordered_set>
#include <array>
#include <forward_list>
#include <chrono>
#include <iomanip>
#include <utility>
#include <cassert>

#pragma GCC optimize("Ofast")
#pragma target("sse", "sse1")

#define mp make_pair
#define pb push_back

using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;

mt19937 gen(34);

int n, k, q, a[100001];

int main()
{
#ifdef _DEBUG
	freopen("input.txt", "r", stdin);
	//freopen("output.txt", "w", stdout);
#else
	//freopen("memory.in", "r", stdin);
	//freopen("memory.out", "w", stdout);
#endif
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cin >> n >> k >> q;
	for (int i = 0; i < q; i++)
	{
		int x;
		cin >> x;
		a[x]++;
	}
	for (int i = 1; i <= n; i++)
		if (k - (q - a[i]) <= 0)
			cout << "No\n";
		else
			cout << "Yes\n";
	return 0;
}

Submission Info

Submission Time
Task C - Attack Survival
User SHAMPINION
Language C++14 (GCC 5.4.1)
Score 300
Code Size 1259 Byte
Status AC
Exec Time 12 ms
Memory 1024 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 26
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
Subtask1 sample_01.txt, sample_02.txt, sample_03.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt, sub1_09.txt, sub1_10.txt, sub1_11.txt, sub1_12.txt, sub1_13.txt, sub1_14.txt, sub1_15.txt, sub1_16.txt, sub1_17.txt, sub1_18.txt, sub1_19.txt, sub1_20.txt, sub1_21.txt, sub1_22.txt, sub1_23.txt
Case Name Status Exec Time Memory
sample_01.txt AC 1 ms 256 KB
sample_02.txt AC 1 ms 256 KB
sample_03.txt AC 1 ms 256 KB
sub1_01.txt AC 12 ms 1024 KB
sub1_02.txt AC 8 ms 1024 KB
sub1_03.txt AC 11 ms 896 KB
sub1_04.txt AC 7 ms 896 KB
sub1_05.txt AC 5 ms 896 KB
sub1_06.txt AC 9 ms 640 KB
sub1_07.txt AC 9 ms 640 KB
sub1_08.txt AC 6 ms 512 KB
sub1_09.txt AC 10 ms 896 KB
sub1_10.txt AC 9 ms 896 KB
sub1_11.txt AC 11 ms 896 KB
sub1_12.txt AC 12 ms 1024 KB
sub1_13.txt AC 4 ms 640 KB
sub1_14.txt AC 7 ms 1024 KB
sub1_15.txt AC 12 ms 896 KB
sub1_16.txt AC 12 ms 896 KB
sub1_17.txt AC 9 ms 384 KB
sub1_18.txt AC 5 ms 896 KB
sub1_19.txt AC 9 ms 384 KB
sub1_20.txt AC 5 ms 896 KB
sub1_21.txt AC 9 ms 384 KB
sub1_22.txt AC 10 ms 1024 KB
sub1_23.txt AC 1 ms 256 KB