반응형
문제 설명
https://www.acmicpc.net/problem/2480
제출한 코드
a,b,c = input().split()
a=int(a)
b=int(b)
c=int(c)
if a==b and b==c :
print(10000+a*1000)
elif a==b or b==c :
print(1000+b*100)
elif a==c :
print(1000+a*100)
else :
if a>=b and a>=c :
print(a*100)
elif b>=a and b>=c :
print(b*100)
else :
print(c*100)
결과

후기
반응형
'BQJ 백준 > python' 카테고리의 다른 글
[Python/파이썬] 백준 2530번: 인공지능 시계 (0) | 2024.06.21 |
---|---|
[Python/파이썬] 백준 2525번: 오븐 시계 (0) | 2024.06.20 |
[Python/파이썬] 백준 2475번: 검증수 (0) | 2024.06.20 |
[Python/파이썬] 백준 2455번: 지능형 기차 (0) | 2024.06.20 |
[Python/파이썬] 백준 2444번: 별 찍기 - 7 (0) | 2024.06.17 |