100 atcoder#ABC129A. [ABC129A] Airplane
[ABC129A] Airplane
Score : points
Problem Statement
There are three airports A, B and C, and flights between each pair of airports in both directions.
A one-way flight between airports A and B takes hours, a one-way flight between airports B and C takes hours, and a one-way flight between airports C and A takes hours.
Consider a route where we start at one of the airports, fly to another airport and then fly to the other airport.
What is the minimum possible sum of the flight times?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the minimum possible sum of the flight times.
1 3 4
4
- The sum of the flight times in the route A B C: hours
- The sum of the flight times in the route A C C: hours
- The sum of the flight times in the route B A C: hours
- The sum of the flight times in the route B C A: hours
- The sum of the flight times in the route C A B: hours
- The sum of the flight times in the route C B A: hours
The minimum of these is hours.
3 2 3
5