Submission #2975648
Source Code Expand
#include <stdio.h> using namespace std; int main() { int a,b,c,i,ans=0; scanf("%d%d%d",&a,&b,&c); int s[a]; for(i=0;i<a;i++) { scanf("%d",&s[i]); if(s[i]<b||s[i]>=c) ans++; } printf("%d\n",ans); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A Barricade |
User | luogu_bot4 |
Language | C++ (GCC 5.4.1) |
Score | 66 |
Code Size | 281 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 128 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:6:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&a,&b,&c); ^ ./Main.cpp:10:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&s[i]); ^
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 66 / 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 | AC | 1 ms | 128 KB |
01_sample.txt | AC | 1 ms | 128 KB |
02_sampe.txt | AC | 1 ms | 128 KB |
03_sample.txt | AC | 1 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 | 1 ms | 128 KB |
random_case_01.txt | AC | 1 ms | 128 KB |
random_case_02.txt | AC | 1 ms | 128 KB |