Submission #3474151
Source Code Expand
#include <stdio.h> int main() { long int n,a,b,c,count,i; scanf("%ld%ld%ld",&n,&a,&b); count=0; for(i=0;i<n;i++) { scanf("%ld",&c); if(c<=a || c>=c) { count++; } } printf("%ld",count); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A Barricade |
User | patilc125 |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 293 Byte |
Status | WA |
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,&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 | 0 / 66 | ||
Status |
|
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 | WA | 0 ms | 128 KB |
01_sample.txt | WA | 1 ms | 128 KB |
02_sampe.txt | WA | 1 ms | 128 KB |
03_sample.txt | WA | 0 ms | 128 KB |
corner_case_03.txt | WA | 1 ms | 128 KB |
corner_case_04.txt | WA | 1 ms | 128 KB |
random_case_00.txt | WA | 1 ms | 128 KB |
random_case_01.txt | WA | 1 ms | 128 KB |
random_case_02.txt | WA | 1 ms | 128 KB |