2 solutions

  • 2
    @ 2025-8-20 19:24:23

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

    int main() { int a[15], n, ans = 0; for (int i = 1; i <= 10; i++) { cin >> a[i]; } cin >> n; for (int i = 1; i <= 10; i++) { if (a[i] > n + 30) { ans++; } } cout << 10 - ans; return 0; }

    Information

    ID
    332
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    1
    Tags
    # Submissions
    72
    Accepted
    49
    Uploaded By