๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • What would life be If we had no courage to attemp anything?
Problem Solving/JUNGOL

์„ ํƒ์ œ์–ด๋ฌธ

by DevIseo 2022. 1. 17.

801

a = int(input())
if a < 0:
    print(a)
    print("minus")
else:
    print(a)

802

a = int(input())
b = int(input())

c = b + 100 - a

if c > 0:
    print(c)
    print("Obesity")
    
else:
    print(c)

803

a = int(input())

if a>=20:
    print("An adult.")

else:
    print(20-a,"years")

804

a = float(input())

if a<=50.80:
    print("Flyweight")

elif a <=61.23:
    print("Lightweight")

elif a<=72.57:
    print("Middleweight")

elif a<=88.45:
    print("Cruiserweight")

else:
    print("Heavyweight")

805

a = float(input())
b = float(input())

if a>=4.0 and b>=4.0:
    print("A")

elif a>=3.0 and b>= 3.0:
    print("B")

else:
    print("C")

806 ๋ชจ๋ฅด๊ฒ ์Œ!!!ใ… ใ… 

์ž…๋ ฅ๋งŒ ๋ฐ›๊ณ  ์ถœ๋ ฅ์ด ์•ˆ๋จ

st1 = input()
st2 = input()
st1,st2=st.split()

if st1 == "M":
    if int(st2) >= 18:
        print("MAN")
    else:
        print("BOY")

elif st1 == "F":
    if int(st2) >=18:
        print("WOMAN")
    else:
        print("GIRL")

์ด๋ ‡๊ฒŒ ํ•ด๊ฒฐํ•จ

st1,st2 = input().split()
 
li1 = 0
li1 = [str(st1),int(st2)]
 
if li1[0] == "M":
    if li1[1]>=18:
        print("MAN")
    elif li1[1]<18:
        print("BOY")
 
if li1[0] == "F":
    if li1[1]>=18:
        print("WOMAN")
    elif li1[1]<18:
        print("GIRL")

807

a = input()

if a == "A":
    print("Excellent")
elif a == "B":
    print("Good")
elif a == "C":
    print("Usually")
elif a == "D":
    print("Effort")
elif a == "F":
    print("Failure")
else:
    print("Mistake")

808

a = float(input())

if a>=4.0:
    print("scholarship")
elif a>=3.0:
    print("next semester")
elif a>=2.0:
    print("seasonal semester")
else:
    print("retake")

809

st1,st2,st3 = input().split()

li1 = 0
li1 = [int(st1),int(st2),int(st3)]

print(min(li1))

๋Œ“๊ธ€