Submission #7519528


Source Code Expand

Copy
import java.util.*;
import java.lang.*;



public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long K = sc.nextLong();
        int Q = sc.nextInt();

        long[] point = new long[N];
        Arrays.fill(point, K-Q);
        for(int q=0; q<Q; q++){
            int A = sc.nextInt()-1;
            point[A]++;
        }
        for(int n=0; n<N; n++) System.out.println(point[n]>0 ? "Yes" : "No");
    }
}

Submission Info

Submission Time
Task C - Attack Survival
User NASU41
Language Java8 (OpenJDK 1.8.0)
Score 300
Code Size 525 Byte
Status AC
Exec Time 1091 ms
Memory 61832 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 95 ms 20816 KB
sample_02.txt AC 94 ms 21844 KB
sample_03.txt AC 95 ms 19156 KB
sub1_01.txt AC 1091 ms 55908 KB
sub1_02.txt AC 832 ms 48672 KB
sub1_03.txt AC 938 ms 48244 KB
sub1_04.txt AC 808 ms 48784 KB
sub1_05.txt AC 637 ms 35984 KB
sub1_06.txt AC 911 ms 47940 KB
sub1_07.txt AC 879 ms 50020 KB
sub1_08.txt AC 755 ms 43240 KB
sub1_09.txt AC 921 ms 50172 KB
sub1_10.txt AC 909 ms 60348 KB
sub1_11.txt AC 946 ms 59036 KB
sub1_12.txt AC 950 ms 50360 KB
sub1_13.txt AC 581 ms 31844 KB
sub1_14.txt AC 836 ms 42308 KB
sub1_15.txt AC 932 ms 61832 KB
sub1_16.txt AC 978 ms 56472 KB
sub1_17.txt AC 505 ms 50284 KB
sub1_18.txt AC 702 ms 45520 KB
sub1_19.txt AC 496 ms 44940 KB
sub1_20.txt AC 700 ms 46824 KB
sub1_21.txt AC 499 ms 46408 KB
sub1_22.txt AC 947 ms 46976 KB
sub1_23.txt AC 169 ms 24648 KB