Skip to content

Commit

Permalink
[#3] 2021.12.14 백준단계별2. if문
Browse files Browse the repository at this point in the history
  • Loading branch information
hyesuuou committed Dec 13, 2021
1 parent a73429a commit 48bf960
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Boj/if문/1330.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
A, B = map(int, input().split())

if A>B:
print('>')
elif A<B:
print('<')
elif A==B:
print('==')
11 changes: 11 additions & 0 deletions Boj/if문/14681.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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")
6 changes: 6 additions & 0 deletions Boj/if문/2753.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
y = int(input())

if (y%4==0 and y%100!=0) or y%400==0:
print("1")
else:
print("0")
10 changes: 10 additions & 0 deletions Boj/if문/2884.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
h, m = input().split()
h = int(h)
m = int(m)

if m-45<0 and h-1<0:
print(23, 60+m-45)
elif m-45<0 and h-1>=0:
print(h-1, m+60-45)
else:
print(h, m-45)
12 changes: 12 additions & 0 deletions Boj/if문/9498.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
n = int(input())

if n>=90:
print("A")
elif n>=80:
print("B")
elif n>=70:
print("C")
elif n>=60:
print("D")
else:
print("F")

0 comments on commit 48bf960

Please sign in to comment.