Submission #7523372


Source Code Expand

Copy
#include <iostream>
using namespace std;

long long a[100010];
main(){
	long long n,k,q,tmp;
	cin>>n>>k>>q;
	for(int i=1;i<=q;i++){
		cin>>tmp;
		a[tmp]++;
	}
	for(int i=1;i<=n;i++){
		a[i] += k-q;
		if(a[i] <= 0)	cout<<"No"<<endl;
		else			cout<<"Yes"<<endl;
	}
}

Submission Info

Submission Time
Task C - Attack Survival
User Ccucumber12
Language C++14 (GCC 5.4.1)
Score 300
Code Size 280 Byte
Status AC
Exec Time 177 ms
Memory 1408 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 177 ms 1408 KB
sub1_02.txt AC 161 ms 1408 KB
sub1_03.txt AC 172 ms 1280 KB
sub1_04.txt AC 160 ms 1280 KB
sub1_05.txt AC 150 ms 1280 KB
sub1_06.txt AC 169 ms 1280 KB
sub1_07.txt AC 166 ms 1280 KB
sub1_08.txt AC 156 ms 1280 KB
sub1_09.txt AC 170 ms 1280 KB
sub1_10.txt AC 174 ms 1280 KB
sub1_11.txt AC 173 ms 1280 KB
sub1_12.txt AC 176 ms 1280 KB
sub1_13.txt AC 149 ms 1280 KB
sub1_14.txt AC 158 ms 1280 KB
sub1_15.txt AC 175 ms 1280 KB
sub1_16.txt AC 176 ms 1280 KB
sub1_17.txt AC 40 ms 384 KB
sub1_18.txt AC 150 ms 1280 KB
sub1_19.txt AC 40 ms 384 KB
sub1_20.txt AC 152 ms 1280 KB
sub1_21.txt AC 40 ms 384 KB
sub1_22.txt AC 168 ms 1408 KB
sub1_23.txt AC 3 ms 256 KB