1 solutions

  • 0
    @ 2023-12-4 18:55:43
    #include<stdio.h>
    int main(){
        int i=0,N=0,m=0,a[100]={0},count=0;
        scanf("%d",&N);
        for(i=0;i<N;i++){
            scanf("%d",&a[i]);
        }
        scanf("%d",&m);
        for(i=0;i<N;i++){
            if(a[i]==m)
            count++;
        }
        printf("%d\n",count);
        return 0;
    }
    

    Information

    ID
    6768
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    5
    Tags
    (None)
    # Submissions
    154
    Accepted
    62
    Uploaded By