#39101: c++ans 非常厲害


aidenlin766909@gmail.com (aiden lin)

學校 : 不指定學校
編號 : 245101
來源 : [1.34.105.90]
最後登入時間 :
2024-04-27 21:34:46
a148. You Cannot Pass?! | From: [223.140.133.92] | 發表日期 : 2024-01-13 18:32

#include <iostream>
using namespace std;

int main() 
{
    int n;
    while (cin >> n) 
    {
      int x, sum = 0;
      for (int i = 0; i < n; i++) 
      {
        cin >> x;
        sum += x;
      }
      if (sum > 59 * n) 
      {
        cout << "no"<<endl;
      } 
      else
      {
        cout << "yes"<<endl;
      }
    }
}

 
ZeroJudge Forum