[Python] 백준 1330번 9498번 2753번 14681번
업데이트:
백준 1330번
A, B = map(int,input().split())
if A>B:
print(">")
elif A<B:
print("<")
else:
print("==")
백준 9498번
A = int(input())
if 90<= A <= 100:
print("A")
elif 80<= A < 90:
print("B")
elif 70<= A < 80:
print("C")
elif 60<= A < 70:
print("D")
else:
print("F")
백준 2753번
A = int(input())
if (A % 4) == 0 and (A % 100) != 0:
print("1")
elif A % 400 == 0:
print("1")
else:
print("0")
백준 14681번
x = int(input())
y = int(input())
if x>0 and y>0:
print("1")
elif x<0 and y>0:
print("2")
elif x<0 and y<0:
print("3")
else:
print("4")
댓글남기기