Submission #7524722


Source Code Expand

Copy
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <time.h>
#include <stdarg.h>
#include <algorithm>
#include <map>
#include <iostream>

using namespace std;

int
main() {
 
  int n, k, q;
  cin>>n>>k>>q;

  map<int, int> score;
  int t;
  for (int i=0; i<q; i++) {
    cin>>t;
    score[t]++;
  }

  for (int i=1; i<=n; i++) {
    if (k - (q-score[i]) > 0)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }

  return 0;
}

Submission Info

Submission Time
Task C - Attack Survival
User jianfeng
Language C++14 (GCC 5.4.1)
Score 300
Code Size 545 Byte
Status AC
Exec Time 224 ms
Memory 5376 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 224 ms 5376 KB
sub1_02.txt AC 192 ms 5376 KB
sub1_03.txt AC 210 ms 5248 KB
sub1_04.txt AC 191 ms 5248 KB
sub1_05.txt AC 174 ms 5248 KB
sub1_06.txt AC 191 ms 5248 KB
sub1_07.txt AC 193 ms 5248 KB
sub1_08.txt AC 182 ms 5248 KB
sub1_09.txt AC 198 ms 5248 KB
sub1_10.txt AC 194 ms 5248 KB
sub1_11.txt AC 206 ms 5248 KB
sub1_12.txt AC 220 ms 5248 KB
sub1_13.txt AC 176 ms 5248 KB
sub1_14.txt AC 192 ms 5248 KB
sub1_15.txt AC 205 ms 5248 KB
sub1_16.txt AC 205 ms 5248 KB
sub1_17.txt AC 47 ms 768 KB
sub1_18.txt AC 174 ms 5248 KB
sub1_19.txt AC 46 ms 768 KB
sub1_20.txt AC 179 ms 5248 KB
sub1_21.txt AC 48 ms 768 KB
sub1_22.txt AC 202 ms 5376 KB
sub1_23.txt AC 3 ms 256 KB