SW개발/코딩테스트

[코드업 기초 100제]1066~1070번 문제 풀이

1066번

a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
if(a%2 == 0) :
    print("even")
else :
    print("odd")
    
if(b%2 == 0) :
    print("even")
else :
    print("odd")
    
if(c%2 == 0) :
    print("even")
else :
    print("odd")

1067번

a = int(input())
if(a<0) :
    print("minus")
    if(a%2 == 0) :
        print("even")
    else :
        print("odd")
else :
    print("plus")
    if(a%2 == 0) :
        print("even")
    else :
        print("odd")

1068번

a = int(input())
if(a>=90 and a<=100) :
    print("A")
elif(a>=70 and a<90) :
    print("B")
elif(a>=40 and a<70) :
    print("C")
else :
    print("D")

1069번

a = input()
if a == "A" :
    print("best!!!")
elif a == "B" :
    print("good!!")
elif a == "C" :
    print("run!")
elif a == "D" :
    print("slowly~")
else :
    print("what?")

1070번

a = int(input())
if(a==12 or a==1 or a==2) :
    print("winter")
elif(a==3 or a==4 or a==5) :
    print("spring")
elif(a==6 or a==7 or a==8) :
    print("summer")
else :
    print("fall")
728x90