Bomb Kirby Running
Cat Life - GT-K
2070번 큰 놈, 작은 놈, 같은 놈

2023. 3. 20. 17:30SWEA

Problem Solving - Level 1 - 큰 놈, 작은 놈, 같은 놈

https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5QQ6qqA40DFAUq&categoryId=AV5QQ6qqA40DFAUq&categoryType=CODE

#include <iostream>
using namespace std;
int main()
{
    int N;
    int a,b;
    cin>>N;
     
    for(int i=1;i<=N;i++)
    {
        cin>>a>>b;
        cout<<"#"<<i<<" ";
        if(a>b)
        {
            cout<<">"<<endl;
        }
         
        else if(a<b)
        {
            cout<<"<"<<endl;
        }
         
        else
        {
            cout<<"="<<endl;
        }
    }
     
    return 0;
}

🔊 나는 이상한 놈

'SWEA' 카테고리의 다른 글

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