3 条题解

  • 1
    @ 2023-10-5 9:19:54

    #include<bits/stdc++.h> using namespace std; int main(){ int a,b,z,m; cin>>a>>b; z=(a+b)2; m=ab; cout<<z<<endl<<m; }

    • 0
      @ 2023-3-20 19:34:18

      #include<bits/stdc++.h> using namespace std; int main() { int a,s,b,c; cin>>a>>s; b=2*(a+s); c=a*s; cout<<b<<endl; cout<<c; return 0; } //稍微麻烦了点,但是是对的.

      • -2
        @ 2022-10-29 11:20:46
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
        int n,m;
        cin>>n>>m;
        cout<<2*(n+m)<<endl<<n*m;
        	return 0;
        	}
        
        
        • 1

        信息

        ID
        413
        时间
        1000ms
        内存
        16MiB
        难度
        1
        标签
        递交数
        52
        已通过
        35
        上传者