Submission #1642464


Source Code Expand

#include "bits/stdc++.h"
#include <unordered_set>
using namespace std;

#define DEBUG(x) cout<<#x<<": "<<x<<endl;
#define DEBUG_VEC(v) cout<<#v<<":";for(int i=0;i<v.size();i++) cout<<" "<<v[i]; cout<<endl

typedef long long ll;
#define vi vector<int>
#define vl vector<ll>
#define vii vector< vector<int> >
#define vll vector< vector<ll> >
#define vs vector<string>
#define pii pair<int,int>
#define pis pair<int,string>
#define psi pair<string,int>
const int inf = 1000000001;
const ll INF = 1e16;
#define MOD 1000000007
#define mod 1000000009
#define pi 3.14159265358979323846
#define Sp(p) cout<<setprecision(15)<<fixed<<p<<endl;
int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };
int dx2[8] = { 1,1,0,-1,-1,-1,0,1 }, dy2[8] = { 0,1,1,1,0,-1,-1,-1 };

/*
cin.tie(0);
ios::sync_with_stdio(false);
*/
int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	int n, a, b, i;
	cin >> n >> a >> b;
	vi t(n);
	for (i = 0; i < n; i++) {
		cin >> t[i];
	}
	ll ans = 0;
	for (i = 0; i < n; i++) {
		if (t[i] < a || t[i] >= b) {
			ans++;
		}
	}
	cout << ans << endl;
}

Submission Info

Submission Time
Task A - A Barricade
User fuppy0716
Language C++14 (GCC 5.4.1)
Score 66
Code Size 1104 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

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 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