ÔÌâÁ´½Ó
×Üʱ¼äÏÞÖÆ: 1000ms ÄÚ´æÏÞÖÆ: 65536kBÃèÊöLarry½ñÄê±ÏÒµ²¢ÕÒµ½ÁËÒ»·Ý¹¤×÷¡£Ëû׬ºÜ¶àÇ®£¬µ«似ºõ×ÜÊDz»¹»¡£LarryÈÏΪËûÐèÒª¿ØÖÆËûµÄͶ×ÊÒÔ½â¾ö×Ô¼ºµÄ²ÆÎñÎÊÌâ¡£LarryÄõ½ÁË×Ô¼ºµÄÒøÐÐÕË»§Ïêµ¥£¬Ïë¿´¿´×Ô¼ºÓжàÉÙÇ®¡£Çë°ïÖúLarryдһ¸ö³ÌÐò£¬Í¨¹ý¹ýÈ¥12¸öÔÂÖÐÿÔµÄÔÂÄ©½áÓ࣬¼ÆËãƽ¾ù½áÓà¡£
Ô´Âë
#include <iostream>#include <iomanip>#include <cmath>using namespace std;int main(){ double d, avg, sum=0; for (int i=0; i<12; i++){ cin >> d; sum += d; } avg = sum/12; cout << "$" << fixed << setprecision(2) << avg << endl; return 0;}
¡¡