Submission #1165658


Source Code Expand

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<vector>
#include<set>
#include<map>
#include<bitset>
#include<cmath>
#include<string>

#define ls (t<<1)
#define rs ((t<<1)+1)
#define mid ((l+r)>>1)
#define fi first
#define se second
#define mk make_pair
#define pb push_back

#define N 100005
#define M 200005
#define seed 23333

using namespace std;
int i,j,m,n,p,k,A,B,x;
set<int>st;
int main()
{
		scanf("%d%d%d",&n,&A,&B);
		for (i=1;i<=n;++i)
		{
				scanf("%d",&x);
				if (x<A||x>=B) st.insert(x);
		}
		printf("%d\n",(int)st.size());
}

Submission Info

Submission Time
Task A - A Barricade
User qiaoranliqu
Language C++14 (GCC 5.4.1)
Score 66
Code Size 615 Byte
Status AC
Exec Time 2 ms
Memory 384 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:29:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d%d",&n,&A,&B);
                           ^
./Main.cpp:32:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&x);
                   ^

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 2 ms 384 KB
01_sample.txt AC 1 ms 256 KB
02_sampe.txt AC 1 ms 256 KB
03_sample.txt AC 1 ms 256 KB
corner_case_03.txt AC 1 ms 256 KB
corner_case_04.txt AC 1 ms 256 KB
random_case_00.txt AC 1 ms 256 KB
random_case_01.txt AC 1 ms 256 KB
random_case_02.txt AC 1 ms 256 KB