1 solutions

  • 1
    @ 2023-12-18 15:23:57

    #include

    using namespace std;

    const int MAXN = 10 + 5; int a[MAXN]; int n = 10; int h; int ans = 0;

    int main(){ for (int i=1;i<=n;i++) cin >> a[i]; cin >> h;

    h+= 30;
    for (int i=1;i<=n;i++)	
    	if (h>=a[i])
    		ans++;
    cout << ans;
    

    }

    • 1

    Information

    ID
    46
    Time
    1000ms
    Memory
    125MiB
    Difficulty
    1
    Tags
    # Submissions
    140
    Accepted
    58
    Uploaded By