Submission #1643165
Source Code Expand
#define _CRT_SECURE_NO_WARNINGS #include<iostream> #include<sstream> #include<cstdio> #include<cstdlib> #include<cstring> #include<climits> #include<cmath> #include<string> #include<vector> #include<set> #include<map> #include<queue> #include<numeric> #include<functional> #include<algorithm> #include<bitset> #include<tuple> #include<unordered_set> #include<random> #include<array> #include<cassert> using namespace std; #define INF (1<<29) #define rep(i,n) for(int i=0;i<(int)(n);i++) #define all(v) v.begin(),v.end() #define uniq(v) v.erase(unique(all(v)),v.end()) int main() { ios::sync_with_stdio(0); cin.tie(0); int n,a,b,ans=0; cin>>n>>a>>b; rep(i,n){ int t; cin>>t; if (t<a || b<=t){ ans++; } } cout<<ans<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A Barricade |
User | hirokazu1020 |
Language | C++14 (GCC 5.4.1) |
Score | 66 |
Code Size | 807 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
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 | 256 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 |