#29608: C++紀錄


e3524167 (Kenlogin)

學校 : 不指定學校
編號 : 186743
來源 : [182.233.207.92]
最後登入時間 :
2022-03-17 21:12:56
a148. You Cannot Pass?! | From: [182.233.207.92] | 發表日期 : 2022-03-14 01:47

#include <iostream>

#include <string>

#include <sstream>

#include <cmath>

using namespace std;

int main()

{

int x;

while (cin >> x)

{

int y[20];

float total = 0;

for (int i = 0; i < x; i++)

{

cin >> y[i];

}

for (int i = 0; i < x; i++)

{

total = total + y[i];

}

 

if (total / x > 59)

{

cout << "no" << endl;

}

else

{

cout << "yes" << endl;

}

}

}

 
ZeroJudge Forum