๐งฎ PS
์ฝ๋์ (Code up) 1065 ~ 1070 (์ ํ์คํ๊ตฌ์กฐ) ํ์ด์ฌ ํ์ด
Newmon
2020. 2. 1. 18:12
๋ฌธ์ ๋งํฌ : https://codeup.kr/problemsetsol.php?psid=23
๋ฌธ์ ์ง / ๊ธฐ์ด 100์
codeup.kr
*1065๋ฒ
a, b, c= map(int,input().split())
if a % 2 ==0 : print(a)
if b % 2 ==0 : print(b)
if c % 2 ==0 : print(c)
*1066๋ฒ
a, b, c= map(int,input().split())
print("even" if a % 2 ==0 else "odd")
print("even" if b % 2 ==0 else "odd")
print("even" if c % 2 ==0 else "odd")
*1067๋ฒ
a = int(input())
print("minus" if a < 0 else "plus")
print("even" if a % 2 ==0 else "odd")
*1068๋ฒ
score = int(input())
evaluation = str()
if score > 89 : evaluation="A"
elif score > 69 : evaluation="B"
elif score > 39 : evaluation="C"
elif 40 > score : evaluation = "D"
print(evaluation)
*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 in (12,1,2) :
print('winter')
elif a in (3,4,5) :
print('spring')
elif a in (6,7,8) :
print('summer')
else : print('fall')
*C++/CPPํ์ด๋ code up ์นดํ ๊ณ ๋ฆฌ์ ์์ต๋๋ค.