2 条题解

  • 0
    @ 2025-10-13 11:24:20

    Python:

    while True:
    	try:
    		a,b,c=map(int,input().strip().split())
    		print(f"{a+b+c:.2f} {(a+b+c)/3:.2f}")
    	except:
    		break
    
    • 0
      @ 2024-7-25 12:33:53

      参考答案:

      #include<iostream>
      
      using namespace std;
      
      int main()
      {
          double a, b, c;
          cin >> a >> b >> c;
      
          printf("%.2lf ", a + b + c);
          printf("%.2lf ", (a + b + c) / 3);
      
          return 0;
      }
      
      • 1

      信息

      ID
      26
      时间
      1000ms
      内存
      256MiB
      难度
      7
      标签
      递交数
      22
      已通过
      8
      上传者