Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111337 王昕怡 05求长方形的周长和面积 C++ Accepted 1 MS 272 KB 364 2025-03-01 16:05:27

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long n,m,c,s; cin>>n>>m; c=(n+m)*2; s=n*m; cout<<c<<' '<<s<<endl; return 0; }


Run Info:

------Input------
44 56
------Answer-----
200 2464
------Your output-----