알고리즘(Python,Java)

백준알고리즘 10817번: 세수

IT grow. 2019. 7. 1. 20:51
반응형

백준알고리즘 2884번: 알람 시계

문제

세 정수 A, B, C가 주어진다. 이때, 두 번째로 큰 정수를 출력하는 프로그램을 작성하시오. 

 

사용언어 : python3

 

input1,input2,input3 = input().split()

first = int(input1)
second = int(input2)
Third = int(input3)

Max = max(first,second,Third)
Min = min(first,second,Third)

print((first+second+Third)-(Max+Min))
반응형