문제 링크 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWFPmsqqALwDFAV0


문제의 저작권은 SW Expert Academy에 있습니다.



#include <iostream>
 
using namespace std;
 
int main(void) {
    int T, a, b, c;
    cin >> T;
 
    for (int t_case = 1; t_case <= T; t_case++) {
        cin >> a >> b >> c;
 
        cout << "#" << t_case << " " << ((a==b) ? c : (a==c) ? b : a) << "\n";
    }
 
    return 0;
}
cs

'C & C++ > SW Expert Academy' 카테고리의 다른 글

SWEA 4047 - 영준이의 카드 카운팅  (0) 2018.04.28
SWEA 3431 - 준환이의 운동관리  (0) 2018.04.28
SWEA 3459 - 승자 예측하기  (0) 2018.04.28
SWEA 3750 - Digit sum  (0) 2018.04.28
SWEA 3975 - 승률 비교하기  (0) 2018.04.28

+ Recent posts