游客 Signup | Login
中文 | En

2684 - 总分平均分

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

小明期末考语文得97分,数学得98分,英语得83分,总分是多少?平均是多少(保留一位小数,)

Input

Output

第一行总分

第二行平均分(保留一位小数

Examples

Input Format


                        

Output Format


                        

Solution C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
        float a,b,c,s=0;
        a=97;b=98;c=83;
        s=a+b+c;
        cout<<s<<endl;
        cout<<fixed<<setprecision(1)<<s/3;
}