All tasks
Easymathconditions

Maximum of Three Numbers

Time limit 2 s · Memory 64 MBAcceptance: —Solved by: 0

Statement

One line contains three integers a, b and c separated by spaces. Print the largest of them.

Examples

Example 1
Input
3 7 5
Output
7
Example 2
Input
-1 -2 -3
Output
-1

Constraints

  • -10^9 ≤ a, b, c ≤ 10^9
Solve this task to unlock the editorial.

AI tutor

Stuck? Get a nudge — the tutor explains the idea, it never hands you the solution.