Submission #7739341


Source Code Expand

Copy
#include <iostream>
#include <vector>
#include <array>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <tuple>
#include <bitset>
#include <memory>
#include <cmath>
#include <algorithm>
#include <functional>
#include <iomanip>
#include <numeric>
#include <climits>
#include <cfloat>






int main() {
	int n, k; std::cin >> n >> k;
	std::vector<int> heights(n); for (auto& h : heights) std::cin >> h;
	std::cout << std::count_if(heights.begin(), heights.end(), [k](const int h) {return h >= k; }) << std::endl;
}

Submission Info

Submission Time
Task B - Roller Coaster
User yudedako
Language C++14 (GCC 5.4.1)
Score 200
Code Size 655 Byte
Status AC
Exec Time 22 ms
Memory 640 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 16
Set Name Test Cases
Sample 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt
All 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-small-01.txt, 01-small-02.txt, 01-small-03.txt, 01-small-04.txt, 01-small-05.txt, 03-near-01.txt, 03-near-02.txt, 03-near-03.txt, 04-narrow-01.txt, 04-narrow-02.txt, 04-narrow-03.txt, 05-max-01.txt, 05-max-02.txt
Case Name Status Exec Time Memory
00-sample-01.txt AC 1 ms 256 KB
00-sample-02.txt AC 1 ms 256 KB
00-sample-03.txt AC 1 ms 256 KB
01-small-01.txt AC 1 ms 256 KB
01-small-02.txt AC 1 ms 256 KB
01-small-03.txt AC 1 ms 256 KB
01-small-04.txt AC 1 ms 256 KB
01-small-05.txt AC 1 ms 256 KB
03-near-01.txt AC 18 ms 512 KB
03-near-02.txt AC 18 ms 512 KB
03-near-03.txt AC 15 ms 512 KB
04-narrow-01.txt AC 13 ms 512 KB
04-narrow-02.txt AC 22 ms 640 KB
04-narrow-03.txt AC 16 ms 512 KB
05-max-01.txt AC 22 ms 640 KB
05-max-02.txt AC 22 ms 640 KB