[UVa # 11172] Relational Operator

tolelom·2022년 7월 3일
0

UVa

목록 보기
6/20

문제 설명

문제 링크
두 수를 입력 받아서 크기 비교를 하면 된다.

알고리즘

간단한 분기 문제이므로 패스

코드

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define INF 1000000000

int t;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    cin >> t;

    for (int tc = 1; tc <= t; ++tc) {
        int a, b;
        cin >> a >> b;

        if (a < b) cout << "<" << '\n';
        else if (a == b) cout << "=" << '\n';
        else cout << ">" << '\n';
    }
}
profile
이것 저것 작성하는 기술 블로그

0개의 댓글