#include<bits/stdc++.h> //万能头,或引入#include<iomanip> using namespace std; int main() { double a=1.0; double b=1.0; double c=1.0; cin>>a>>b>>c; double d=a+b+c; double e=d/3; cout<<fixed<<setprecision(2)<<d<<" "<<fixed<<setprecision(2)<<e<<endl; }
#include<bits/stdc++.h> //万能头,或引入#include<iomanip> using namespace std; int main() { double a=1.0; double b=1.0; double c=1.0; cin>>a>>b>>c; double d=a+b+c; double e=d/3; cout<<fixed<<setprecision(2)<<d<<" "<<fixed<<setprecision(2)<<e<<endl; }