본문 바로가기

IT/self-study

[백준] 1차원 배열 (2월 2주차_7문제)

36.1330번

A, B = map(int, input().split())
if A>B:
    print(">")
elif A<B:
    print("<")
elif A==B:
    print("==")

 

37. 9498번

score = int(input())
if 90 <= score:
    print("A")
elif 80 <= score:
    print("B")
elif 70 <= score:
    print("C")
elif 60 <= score:
    print("D")
else:
    print("F")

 

 

38. 2753번

year = int(input())
if (year%4==0 and year%100!=0) or year%400==0:
    print(1)
else:
    print(0)

 

39. 14681번

x = int(input())
y = int(input())
if x>0:
    if y>0:
        print(1)
    elif y<0:
        print(4)
elif x<0:
    if y>0:
        print(2)
    elif y<0:
        print(3)

 

40. 2884번

H, M = map(int, input().split())
if M >= 45:
    print(H,M-45)
elif H>0 and M<45:
    print(H-1,M+15)
else:
    print(23,M+15)

 

41. 10926번

id = input()
print(id+"??!")

 

42. 18108번

a = int(input())
print(a - 543)