Pages

Saturday, July 30, 2011

a148. You Cannot Pass?!


#include

using namespace std;

int main()
{
int num;
while(cin>>num)
{
double sum=0,avg;
for(int i=0;i {
int score;
cin>>score;
sum += score;
}
avg = sum / num;
cout<<((avg>59)? "no":"yes")< }
return 0;
}

2 comments: