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


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



#include <iostream>
 
using namespace std;
 
int main(void) {
    int T, Answer;
 
    cin >> T;
 
    for(int t_case = 0; t_case < T; t_case++) {
        int x, y;
        cin >> x >> y;
 
        cout << "#" << t_case+1 << " ";
 
        if(x < y)
            cout << "<\n";
        else if(x == y)
            cout << "=\n";
        else
            cout << ">\n";
    }
}
cs

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

SWEA 2058 - 자릿수 더하기  (0) 2018.04.27
SWEA 2063 - 중간값 찾기  (0) 2018.04.27
SWEA 2068 - 최대수 구하기  (0) 2018.04.27
SWEA 2071 - 평균값 구하기  (0) 2018.04.27
SWEA 2072 - 홀수만 더하기  (0) 2018.04.27

+ Recent posts