12 条题解

  • 1
    @ 2023-9-6 19:35:04
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a , b;
        cin >> a >> b;
        cout << (a+b)*2 << endl << a*b;
        return 0;
    }
    

    简单A

    • 1
      @ 2023-8-31 14:37:48

      ** //点个赞!点个赞!点个赞!❤️

      #include <iostream>
      using namespace std;
      int main(){
          int a,b,s,c;
          cin >> a >> b;
          c = (a + b) * 2;
          s = a * b;
          cout << c << endl << s;
          return 0;
      }
      
      • 1
        @ 2022-11-12 22:40:54
        #include <iostream>
        using namespace std;
        int main()
        {
            int a,b;
            cin >> a >> b;
            cout << 2 * (a + b) << endl << a * b << endl;
        }
        

        只需8行~

        • 0
          @ 2024-1-13 18:19:15
          a = [int(i) for i in input().split()]
          b = a[0] + a[1]
          b = b * 2
          c = a[0] * a[1]
          print(b)
          print(c)
          
          • 0
            @ 2023-3-6 13:06:55

            ` 低年级数学题

            #include<bits/stdc++.h>
            using namespace std;
            int main()
            {
                int n, m;
                cin >> n >> m;
                cout << n * 2 + m * 2 << endl << n * m;
                return 0;
            }
            
            • 0
              @ 2022-12-23 15:13:48
              #include <bits/stdc++.h>
              using namespace std;
              int main()
              {
                  int a, b;
                  cin >> a >> b;
                  cout << (a + b) * 2 << endl;
                  cout << a * b;
                  return 0;
              }
              
              • 0
                @ 2022-9-1 17:29:51
                cout<<(a+b)*2<<'\n'<<a*b;
                
                • 0
                  @ 2022-7-6 14:47:02
                  #include <bits/stdc++.h> 
                  using namespace std;
                  int main()
                  {
                      int a,b;
                      cin >> a >>b;
                      cout << (a+b)*2 << endl << a*b; 
                      return 0;
                  }
                  
                  • -1
                    @ 2023-8-30 12:04:53

                    点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞!

                    using namespace std;
                    int main()
                    {
                        int y,x;
                        cin >> y >> x;
                        cout << (y+x)*2 << endl << y*x;
                        return 0;
                    }
                    
                    • -1
                      @ 2023-5-25 18:03:09
                      #include <bits/stdc++.h>
                      using namespace std;
                      int n, m;
                      int main()
                      {
                          cin >> n >> m;
                          cout << 2 * (n + m) << endl << n * m;
                          return 0;
                      }
                      
                      • -1
                        @ 2023-4-29 21:05:38
                        #include <iostream>
                        using namespace std;
                        int main()
                        {
                            int a,b;
                            cin >> a >> b;
                            cout << 2 * (a + b) << endl << a * b << endl;
                        }
                        
                        • -4
                          @ 2022-5-21 16:09:51

                          #include<stdio.h> #include<math.h> int main() { int a,b; scanf("%d %d",&a,&b); printf("%d\n%d",2a+2b,a*b); return 0; }

                          • 1

                          【入门】求长方形的周长和面积

                          信息

                          ID
                          413
                          时间
                          1000ms
                          内存
                          16MiB
                          难度
                          3
                          标签
                          递交数
                          619
                          已通过
                          327
                          上传者