본문 바로가기
Algorithm/Implementaion

[백준] 2480번 주사위 세개

by 등촌동 꼬북이 2020. 10. 20.

머쓱타드.. 

 

 

import sys
N = list(map(int, sys.stdin.readline().split()))
ans = 0
temp = 0
N.sort()
front = N[0]
back = N[1]
if back > front:
    front = back
x = N.count(front)
if x == 3:
    temp = 10000 + front * 1000
if x == 2:
    temp = 1000 + front * 100
if N[0] != N[1] != N[2]:
    temp = max(N) * 100
if ans < temp:
    ans = temp
print(ans)

'Algorithm > Implementaion' 카테고리의 다른 글

[백준] 2875번 대회 or 인턴  (0) 2020.11.23
[백준] 10103번 주사위 게임  (0) 2020.10.20
[백준] 2935번 소음  (0) 2020.10.20
[백준] 2530번 인공지능 시계  (0) 2020.10.20
[백준] 2476번 주사위 게임  (0) 2020.10.20

댓글