题目描述
Problem Description
JOI has taken an information exam three times. The scores of the exams are all integers between 0 and 100 inclusive.
JOI's grade is determined by the sum of the two highest scores out of the three exam scores.
Given the scores of the three exams \( A, B, C \), create a program that outputs the sum of the two highest scores out of the three exam scores.
Input Format
The input is given from the standard input in the following format:
\( A \) \( B \) \( C \)
Output Format
Output the sum of the two highest scores out of the three exam scores in one line.
Sample Input and Output
Sample Input #1
70 80 90
Sample Output #1
170
Sample Input #2
70 100 70
Sample Output #2
170
Sample Input #3
70 70 70
Sample Output #3
140
Notes/Hints
Constraints
- \( 0 \leq A \leq 100 \).
- \( 0 \leq B \leq 100 \).
- \( 0 \leq C \leq 100 \).
- All inputs are integers.
Sample Explanation 1
The scores in descending order are \( 90, 80, 70 \), so the required sum is \( 90 + 80 = 170 \).
Sample Explanation 2
The scores in descending order are \( 100, 70, 70 \), so the required sum is \( 100 + 70 = 170 \).
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分