7 条题解

  • 2
    @ 2022-12-13 13:45:45
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a, b, c;
        cin >> a >> b >> c;
        cout << (a * 2 + b * 3 + c * 5) / 10;
    	return 0;
    }
    
    • 1
      @ 2023-9-6 19:50:13
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          double a, b, c;
          cin >> a >> b >> c;
          a = a * 0.2 +b * 0.3 + c * 0.5;
          cout << a ;
          return 0;
      }
      

      A

      • 1
        @ 2023-6-9 19:01:54
        #include <bits/stdc++.h>
        using namespace std;
        double a, b, c;
        int main()
        {
            cin >> a >> b >> c;
            cout << a * 0.2 + b * 0.3 + c * 0.5;
            return 0;
        }
        
        • 1
          @ 2022-12-24 11:02:21
          #include <bits/stdc++.h>
          using namespace std;
          int main()
          {
              double a, b, c;
              cin >> a >> b >> c;
              cout << a * 0.20 + b * 0.30 + c * 0.50;
              return 0;
          }
          
          • 0
            @ 2023-7-31 10:31:00
            #include <cstdio>
            using namespace std;
            int main()
            {
                int a, b, c;
                scanf("%d%d%d", &a, &b, &c);
                int sum = a * 0.2 + b * 0.3 + c * 0.5;
                printf("%d\n", sum);
                return 0;
            }
            
            • -1
              @ 2023-1-16 17:33:15

              全场最简:

              #include <bits/stdc++.h>
              int a , b , c;
              int main()
              {
                  std::cin >> a >> b >> c;
                  std::cout << a * 0.2 + b * 0.3 + c * 0.5;
                  return 0;
              }
              
              • -2
                @ 2023-8-19 18:30:15

                《“极简”版》

                #include <bits/stdc++.h>//好习惯
                using namespace std;
                int main()
                {
                double a, b, c;
                cin >> a >> b >> c;
                double aa = a * 0.2;
                double bb = b * 0.3;
                double cc = c * 0.5;
                int s = aa + bb + cc;
                cout << s;
                return 0;//又一个好习惯
                }
                

                已AC😄

                • 1

                信息

                ID
                1568
                时间
                1000ms
                内存
                256MiB
                难度
                2
                标签
                递交数
                156
                已通过
                95
                上传者