PersonalCorpus 版 (精华区)

41698 2002-10-15 02:11:42 Accepted
1048 C++ 00:00.00 380K Big Guava

int main()
{
#ifndef ONLINE_JUDGE
    freopen("c:\\0acm\\zju\\i1048","r",stdin);
    freopen("c:\\0acm\\zju\\o1048","w",stdout);
#endif

    int i,j,k,n,t;
    double x,y;
    y=0;
    for (t=1;t<=12;t++) {
        scanf("%lf\n",&x); y+=x;
    }
    printf("$%.2lf\n",floor(y/12*100+0.5)/100);
}
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:4.817毫秒