1 solutions

  • 0
    @ 2024-8-29 21:49:16

    👍

    #include <bits/stdc++.h>
    using namespace std;
    
    int main(){
    	int a[10], n, ans = 0;
    	for (int i = 0; i < 10; i++) {
    		cin >> a[i];
    	}
    	cin >> n;
    	for (int i = 0; i < 10; i++) {
    		if (a[i] > n + 30) {
    			ans++;
    		}
    	}
    	cout << 10 - ans;
    	return 0;
    }
    

    【深基3.习7】[NOIP2005 普及组] 陶陶摘苹果

    Information

    ID
    52
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    10
    Tags
    # Submissions
    7
    Accepted
    4
    Uploaded By