1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #include <iostream> using namespace std; int main() { int A, B, C, T = 0; while (1) { cin >> A >> B >> C; if (A >= 1 && A <= 6 && B >= 1 && B <= 6 && C >= 1 && C <= 6) break; } if (A == B && B == C ) cout << 10000 + A * 1000 << endl; else if (A != B && B != C && C != A) { if (A > B && A > C) cout << A * 100 << endl; else if (B > A && B > C) cout << B * 100 << endl; else cout << C * 100 << endl; } else { if (A == B) cout << 1000 + A * 100 << endl; else if (B == C) cout << 1000 + B * 100 << endl; else cout << 1000 + C * 100 << endl; } return 0; } | cs |