MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon/Python

#2480 ์ฃผ์‚ฌ์œ„ ์„ธ๊ฐœ - python

HYEJU01 2024. 4. 8. 23:17
a,b,c = map(int,input().split())

if(a==b==c):
    price = 10000+a*1000
    
elif (a==b or a==c or b==c):
    if (a==b):
      price =1000+a*100
    elif (b==c):
       price =1000+b*100 
    else:
        price =1000+c*100 
        
else:
    if(a>b):
        if(a>c):
            tmp = a
        else:
            tmp = c
    else :
        if (b>c):
            tmp = b
        else :
            tmp = c
    price = (tmp * 100)
        
print(price)

 

๊ทธ๋ƒฅ ๊ฐ์œผ๋กœ ๋•Œ๋ ค ์ฝ”๋”ฉํ•ด์„œ ์ง€์ €๋ถ„ํ•˜๋‹ค

๋‹ค๋ฅธ ์ฝ”๋“œ๋„ ์ฐธ๊ณ ํ•ด๋ดค๋‹ค.

 

 

a,b,c = map(int,input().split())
list=[a,b,c]

if a==b==c : print(10000+a*1000)
elif a==b or a==c : print(1000+a*100)
elif b==c : print(1000+b*100)
else : print(max(list)*100)

abc ๋ฅผ list ์— ๋„ฃ์–ด์„œ ์ตœ๋Œ“๊ฐ’์„ max() ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์ถœ๋ ฅ