1064 financial management.cpp

来自「威士忌的HDU题解.大概有260多题的源码。对于学习非常有好处。」· C++ 代码 · 共 29 行

CPP
29
字号
/*
1064 Financial Management
Time Limit : 200 ms  Memory Limit : 32768 K  Output Limit : 1024 K

GUN C++
*/
#include <iostream.h>
using namespace std;

const int MAX=1000;

int main()
{
    double total,month;
    cout.setf(ios::fixed);
    cout.precision(2);
    while(cin>>total)
    {
        for(int ca=1;ca<12;ca++)
        {
            cin>>month;
            total+=month;
        }
        cout<<'$'<<total/12<<endl;
    }
    return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?