TopCoder

User's AC Ratio

100.0% (2/2)

Submission's AC Ratio

100.0% (2/2)

Tags

Description

Max 發現 c++ 的 algorithm 標頭檔居然有 max 這個函式,自戀的他想要用這個函式解決大部分的題目。

然而這裡當然只有一個題目,這個題目的目標是要用 max 找到三個正整數的中位數。

註:只能使用 algorithm 裡的 std::max 函式及加減運算子,不能使用條件判斷式、iffordowhile、或其他函式。

Input Format

輸入三個整數 $1 \leq a, b, c \leq 5$,以空格分隔。

Output Format

輸出中位數。

Sample Input 1

1 2 3

Sample Output 1

2

Hints

Problem Source

Subtasks

No. Testdata Range Constraints Score
1 0 範例測資 0
2 0~5 無額外限制 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 524288 65536 1 2
1 1000 524288 65536 2
2 1000 524288 65536 2
3 1000 524288 65536 2
4 1000 524288 65536 2
5 1000 524288 65536 2