SW ExpertAcademy/D1

2070. 큰 놈, 작은 놈, 같은 놈

Programmer. 2018. 11. 30. 22:28

2070. 큰 놈, 작은 놈, 같은 놈

문제출처: https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QQ6qqA40DFAUq&categoryId=AV5QQ6qqA40DFAUq&categoryType=CODE




풀이 방법



<코드>


#include <iostream>

int main()
{
    int n{0};
    std::cin>>n;
    
    for(int testCase =1;testCase <=n;testCase ++)
    {
       	int input1{0},input2{0};
        std::cin>>input1>>input2;
        if(input1>input2)
	        std::cout<<"#"<<testCase<<' '<<">" <<"\n";
        else if(input1<input2)
	        std::cout<<"#"<<testCase<<' '<<"<" <<"\n";
        else 
	        std::cout<<"#"<<testCase<<' '<<"=" <<"\n";
    }
    
    return 0;
}