์ƒˆ์†Œ์‹

๐Ÿงฎ PS

์ฝ”๋“œ์—… (Code up) 1065 ~ 1070 (์„ ํƒ์‹คํ–‰๊ตฌ์กฐ) ํŒŒ์ด์ฌ ํ’€์ด

  • -

๋ฌธ์ œ ๋งํฌ : 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 ์นดํ…Œ๊ณ ๋ฆฌ์— ์žˆ์Šต๋‹ˆ๋‹ค.

Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.