2016-08-18 Problem Solving►UVa UVa 11727 - Cost Cutting Contents 1. Problem2. Solution3. Code Problem中文網址 Solution恩三種。 if else if else if CodeUVa 11727123456789101112131415161718192021#include<cstdio>int main(){ int Case; scanf("%d", &Case); for (int c = 1; c <= Case; c++) { int x, y, z; scanf("%d%d%d", &x, &y, &z); printf("Case %d: ", c); if ((x >= y&&x <= z) || (x >= z&&x <= y)) printf("%d\n", x); else if ((y >= x&&y <= z) || (y >= z&&y <= x)) printf("%d\n", y); else if ((z >= y&&z <= x) || (z >= x&&z <= y)) printf("%d\n", z); } return 0;} Newer UVa 424 - Integer Inquiry Older UVa 10622 - Perfect P-th Powers