Submission #3474183


Source Code Expand

#include <stdio.h>

int main()
{
    long int n,a,b,c,count,i;
    scanf("%ld %ld %ld\n",&n,&a,&b);
    count=0;
    for(i=0;i<n;i++)
    {
        scanf("%ld",&c);
        if(c<a ||  c>=b)
        {
            count++;
        }
    }
    printf("%ld\n",count);

    return 0;
}

Submission Info

Submission Time
Task A - A Barricade
User patilc125
Language C (GCC 5.4.1)
Score 66
Code Size 298 Byte
Status AC
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:6:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%ld %ld %ld\n",&n,&a,&b);
     ^
./Main.c:10:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%ld",&c);
         ^

Judge Result

Set Name All
Score / Max Score 66 / 66
Status
AC × 9
Set Name Test Cases
All 00_sample.txt, 01_sample.txt, 02_sampe.txt, 03_sample.txt, corner_case_03.txt, corner_case_04.txt, random_case_00.txt, random_case_01.txt, random_case_02.txt
Case Name Status Exec Time Memory
00_sample.txt AC 1 ms 128 KB
01_sample.txt AC 0 ms 128 KB
02_sampe.txt AC 0 ms 128 KB
03_sample.txt AC 0 ms 128 KB
corner_case_03.txt AC 1 ms 128 KB
corner_case_04.txt AC 1 ms 128 KB
random_case_00.txt AC 0 ms 128 KB
random_case_01.txt AC 1 ms 128 KB
random_case_02.txt AC 1 ms 128 KB