a148. You Cannot Pass?!

解法一

✅ 完整代碼

評分結果(參考) : AC (2ms, 328KB)

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

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n = 0;
    while(cin >> n){
        int score;
        int sum = 0;
        for(int i=0; i<n; i++){
            cin >> score;
            sum += score;
        }

        if(sum*1.0/n > 59) cout << "no\n";
        else cout << "yes\n";
    }
    
    return 0;
}