Problems > Maximum of Three

Maximum of Three

Difficulty: 800 2000 ms 128 MB

implementation

Print the largest of three integers.

Input: one line with three integers A, B, C.

Output: the maximum of the three.

Constraints:

  • −1018 ≤ A, B, C ≤ 1018

Sample Tests

Input 1
3 9 5
Output 1
9
Input 2
-4 -9 -5
Output 2
-4

Read the Editorial

Discussion (opens after you solve — no spoilers before)

No comments yet.

Submit Your Solution

Log in or create a free account to run and submit code.