题解 | #牛牛学矩形#
牛牛学矩形
https://ac.nowcoder.com/acm/problem/21998
传送门->https://ac.nowcoder.com/acm/problem/21998
my blog->https://blog.nowcoder.net/yanhaoyang2106
长方形周长: (a+b)/2
长方形面积: a x b
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<(a+b)*2<<endl<<a*b;
return 0;
拜拜
已写的题解集 文章被收录于专栏
将自己知道的一些竞赛知识推广给大家