P12868题解
_PerfectYouth_ · · 题解
这题难道不是数学题吗?
思路
我们已知一个长方形的面积为 4052 。
code
#include<bits/stdc++.h>
using namespace std;
int C(int a,int b){
cout<<2*(a+b);
}//定义求周长函数
int MAX(int a,int b,int c,int s){
b=1;//直接把宽赋值为最小的正整数1
a=s/b;
C(a,b);
}//定义最大值函数
int main(){
int a,b,c,s;
s=2025;
MAX(a,b,c,s);//套用函数,求出答案
return 0;//养成一个好习惯
}