Skip to content

두 정수 중 큰 값 출력하기

Unrated
한국어

Language

Contribute a translation
Time limit
1000 ms
Memory limit
256 MB
Submissions
5
Correct
4
Solved by
4
AC rate
80.000%

Statement

정숫값 2개를 전달받아 그중 큰 값을 반환하는 함수 g()를 설계하고, 반환된 값을 출력하시오.

Input

첫째 줄에 두 정수 $a$와 $b$가 공백을 사이에 두고 주어진다. ($-1\,000 \le a, b \le 1\,000$)

Output

$a$와 $b$ 중 큰 값을 한 줄에 출력한다. 두 값이 같으면 그 값을 출력한다.

Examples

Sample input 1
3 8
Sample output 1
8
Sample input 2
-4 -9
Sample output 2
-4

Tags

No tags yet