标签:
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int ans = 0x3f3f3f3f;
ans = min(ans ,a+b+c);
ans = min(ans ,a+b-c);
ans = min(ans ,a+b*c);
ans = min(ans ,a-b+c);
ans = min(ans ,a-b-c);
ans = min(ans ,a-b*c);
ans = min(ans ,a*b+c);
ans = min(ans ,a*b-c);
ans = min(ans ,a*b*c);
printf("%d\n",ans);
return 0;
}
[2016-04-16][URAL][2066][Simple Expression]
标签:
原文地址:http://www.cnblogs.com/qhy285571052/p/4e19f20e51870199be52efdd40738e2d.html