1 条题解

  • 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;
    }
    
    • 1

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

    信息

    ID
    52
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    28
    已通过
    15
    上传者