반응형
https://www.acmicpc.net/problem/1330
a,b = map(int,input().split())
if a>b:
print('>')
elif a<b:
print('<')
else:
print('==')
https://www.acmicpc.net/problem/9498
score = int(input())
if score>=90 and score<=100:
print('A')
elif score>=80:
print('B')
elif score>=70:
print('C')
elif score>=60:
print('D')
else:
print('F')
https://www.acmicpc.net/problem/2753
year= int(input())
if year%4 == 0:
if (year%100 != 0) or (year%400==0):
print(1)
else:
print(0)
else:
print(0)
https://www.acmicpc.net/problem/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)
https://www.acmicpc.net/problem/2884
h,m = map(int,input().split())
if m<45:
if h == 0:
print(23,m+60-45)
else:
print(h-1,m+60-45)
else:
print(h,m-45)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 1026 (0) | 2020.08.21 |
---|---|
baekjoon - python - 1008 (0) | 2020.08.21 |
baekjoon - python - 1001 (0) | 2020.08.21 |
baekjoon - python -1000 (0) | 2020.08.21 |
백준 - 입출력과 사칙연산 단계 (0) | 2020.07.14 |
댓글