小H的思维题 |
您所在的位置:网站首页 › (a+b)(a-b)的题 › 小H的思维题 |
#include using namespace std; class test { public: long long a; long long b; long long x; long long y; long long n; void result() { long long temp[5]; for(int i=0;i=n) { temp[0]=(a-n)*b; } if((b-y)>=n) { temp[1]=a*(b-n); } if((a-x)=(n-a+x)) { temp[2]=x*(b-n+a-x); } if((b-y)=(n-b+y)) { temp[3]=y*(a-n+b-y); } if((b-y)+(a-x)temp[i]) min=temp[i]; } cout>t[i].b>>t[i].x>>t[i].y>>t[i].n; } for(int i=0;i |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |