본문 바로가기

Algorithm/SWEA

[SWEA / python] 2070. 큰 놈, 작은 놈, 같은 놈

https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5QQ6qqA40DFAUq&categoryId=AV5QQ6qqA40DFAUq&categoryType=CODE&problemTitle=&orderBy=FIRST_REG_DATETIME&selectCodeLang=PYTHON&select-1=1&pageSize=10&pageIndex=1 

 

SW Expert Academy

SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!

swexpertacademy.com

T = int(input())

for test_case in range(1, T + 1):
    data = list(map(int, input().split()))
    result = data[0] - data[1]
    if result > 0 :
        print("#"+str(test_case)+" >")
    elif result == 0 :
        print("#"+str(test_case)+" =")
    else :
        print("#"+str(test_case)+" <")