ZeroJudge & UVa Online Judge answers
#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; }
感謝大大的文章...我一直卡在double的地方
我也有卡到過: )
感謝大大的文章...
ReplyDelete我一直卡在double的地方
我也有卡到過: )
ReplyDelete