B004


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 493M

Problem type

Viết chương trình nhập từ bàn phím ba số nguyên 𝑎, 𝑏, 𝑐 rồi in ra trung bình cộng của ba số.

|𝑎|, |𝑏|, |c|≤ 10^17 Kết quả lấy 2 chữ số thập phân.

Sample Input

3 4 5

Sample Output

4.00

Comments


  • 0
    RiderQuanggVuu  commented on Aug. 27, 2023, 12:47 p.m.

    include <iostream>

    include <iomanip>

    using namespace std; main() { long long a,b,c; long double s; cin>>a>>b>>c; s=(a+b+c)/3; cout<<fixed<<setprecision(2)<<s; }