2 条题解

  • 0
    @ 2025-4-16 16:14:55
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        double a=0,b=0;
        a=a+97+98+83;
        b=a/3;
        cout<<a<<endl;
        printf("%.1lf",b);
        return 0;
    }
    
    • 0
      @ 2024-12-24 10:06:15

      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;
      }
      
      • 1

      信息

      ID
      2521
      时间
      1000ms
      内存
      128MiB
      难度
      10
      标签
      递交数
      3
      已通过
      1
      上传者