Tìm số lẻ

PDF

Submit solution

Points: 10.00 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Problem source:
Sưu tầm
Problem type
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT

Yêu cầu:

Cho số nguyên ~N~. Hãy tìm số lẻ gần với ~N~ nhất. Số lẻ gần với ~N~ nhất được chọn là số lẻ ~Y~ thỏa điều kiện ~N \le Y~.

Dữ liệu:

Một dòng duy nhất ghi số nguyên ~N~ ~(0 \le N \le 100)~

Kết quả:

Một dòng duy nhất ghi số lẻ gần với ~N~ nhất.

Input 1:

23

Output 1:

23

Input 2:

34

Output 2:

35

Comments

Please read the guidelines before commenting.


There are no comments at the moment.