728x90
반응형
JUNGOL 정보올림피아드&알고리즘에서 학습용으로 문제를 가져왔습니다. 문제가 될 시 수정, 삭제하겠습니다.
801
a=int(input())
print(a)
if a<0:
print("minus")
802
a=int(input())
b=int(input())
c=b+100-a
print(c)
if c>0:
print("Obesity")
803
a=int(input())
if a>=20:
print("An adult.")
else:
print("%d years"%(20-a))
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")
elif a>88.45:
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
a=input().split(" ")
if a[0]=="M" and int(a[1])>=18:
print("MAN")
elif a[0] == "F" and int(a[1]) >= 18:
print("WOMAN")
elif a[0] == "M" and int(a[1]) < 18:
print("BOY")
elif a[0] == "F" and int(a[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")
elif a<2.0:
print("retake")
809
a=list(map(int,input().split(" ")))
print(min(a))
810
a=list(map(int,input().split(" ")))
print(max(a)-min(a))
811
a=int(input())
if a==0:
print("zero")
elif a>0:
print("plus")
elif a<0:
print("minus")
812
a=int(input())
if a%400==0:
print("leap year")
elif a%4==0 and a%100!=0:
print("leap year")
else:
print("common year")
813
a=int(input("Number? "))
if a==1:
print("dog")
elif a==2:
print("cat")
elif a==3:
print("chick")
else:
print("I don't know.")
814
a=int(input())
lst=[31,28,31,30,31,30,31,31,30,31,30,31]
for i in range(len(lst)):
if a==(i+1):
print(lst[i])
반응형
'Programming > JUNGOL : 정보올림피아드&알고리즘' 카테고리의 다른 글
[JUNGOL LCoder_Python 반복제어문2]:841~859 (0) | 2022.01.26 |
---|---|
[JUNGOL LCoder_Python 반복제어문]:821~831 (1) | 2022.01.26 |
[JUNGOL LCoder_Python 리스트1]:781~795 (0) | 2022.01.26 |
[JUNGOL LCoder_Python 문자열]:761~769 (0) | 2022.01.26 |
[JUNGOL LCoder_Python 연산자]:740~756 (2) | 2022.01.26 |