Submission #7738988


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int n, k, ans = 0;
    cin >> n >> k;
    for (int i = 0; i < n; i++) {
        int h;
        cin >> h;
        if (h >= k) ans++;
    }
    cout << ans << endl;
    return 0;
}

Submission Info

Submission Time
Task B - Roller Coaster
User syak
Language C++14 (GCC 5.4.1)
Score 200
Code Size 278 Byte
Status AC
Exec Time 26 ms
Memory 256 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 20 ms 256 KB
03-near-02.txt AC 21 ms 256 KB
03-near-03.txt AC 17 ms 256 KB
04-narrow-01.txt AC 15 ms 256 KB
04-narrow-02.txt AC 25 ms 256 KB
04-narrow-03.txt AC 18 ms 256 KB
05-max-01.txt AC 26 ms 256 KB
05-max-02.txt AC 26 ms 256 KB