AtCoder Beginner Contest 102
翻译中…
Problem Statement
翻译中…
You are given a positive integer $N$. Find the minimum positive integer divisible by both $2$ and $N$.
翻译中…
Constraints
翻译中…
$1 \leq N \leq 10^9$- All values in input are integers.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N
翻译中…
Output
翻译中…
Print the minimum positive integer divisible by both $2$ and $N$.
翻译中…
样例
Input #1
3
Output #1
6
$6$ is divisible by both $2$ and $3$. Also, there is no positive integer less than $6$ that is divisible by both $2$ and $3$. Thus, the answer is $6$.
Input #2
10
Output #2
10
Input #3
999999999
Output #3
1999999998
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。