#include <iostream> #include <iomanip> int main() { int x, y, z; std::cin >> x >> y >> z; int totalScore = x + y + z; double averageScore = static_cast<double>(totalScore) / 3; std::cout << totalScore << std::endl; std::cout << std::fixed << std::setprecision(1) << averageScore << std::endl; return 0; } /************************************************************** Problem: 1602 User: lihean Language: C++ Result: Accepted Time:9 ms Memory:2072 kb ****************************************************************/