백준 - 조건문 문제 (python)

지환·2023년 8월 1일
0

백준(python)

목록 보기
1/67
post-thumbnail

출처 | 백준

https://www.acmicpc.net/problem/9498

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 <= 89:
    print("B")

elif 70<= a <= 79:
    print("C")

elif 60<= a <= 69:
    print("D")

else:
    print("F")

2753 코드

a = int(input())

if (a % 4 == 0 and a % 100 != 0) or a % 400 == 0:
    print("1")

else:
    print("0")

2525번

H, M = map(int, input().split())
timer = int(input()) 

H += timer // 60
M += timer % 60

if M >= 60:
    H += 1
    M -= 60
if H >= 24:
    H -= 24

print(H,M)

2480번

a, b, c = map(int, input().split())

if a == b == c:
    print(10000+a*1000)
elif a == b:
    print(1000+a*100)
elif a == c:
    print(1000+a*100)
elif b == c:
    print(1000+b*100)
else:
    print(100 * max(a,b,c))

day-1일차

145문제 남음

profile
아는만큼보인다.

0개의 댓글