Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6832 | 赖梓乐 | 05求长方形的周长和面积 | C++ | Accepted | 0 MS | 264 KB | 344 | 2025-03-20 20:21:33 |
#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(){ int m,n; cin >>m>>n; cout<<(m+n)*2<<' '; cout<<m*n; return 0; }