Submission #2171390
Source Code Expand
// #include {{{ #include <iostream> #include <cassert> #include <cstring> #include <cstdlib> #include <cstdio> #include <cctype> #include <cmath> #include <ctime> #include <queue> #include <set> #include <map> #include <stack> #include <string> #include <bitset> #include <vector> #include <complex> #include <algorithm> using namespace std; // }}} // #define {{{ typedef long long ll; typedef double db; typedef pair<int,int> pii; typedef vector<int> vi; #define de(x) cout << #x << "=" << x << endl #define rep(i,a,b) for(int i=a;i<(b);++i) #define per(i,a,b) for(int i=(b)-1;i>=(a);--i) #define all(x) (x).begin(),(x).end() #define sz(x) (int)(x).size() #define mp make_pair #define pb push_back #define fi first #define se second // }}} int n , a , b; int main(){ cin >> n >> a >> b; int ans = 0; rep(i,0,n) { int t; cin >> t; ans += !(a <= t && t < b); } cout << ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A Barricade |
User | Y_UME |
Language | C++14 (GCC 5.4.1) |
Score | 66 |
Code Size | 968 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 |