Masala #0469
Eng yaqin tub son
Sizga \(n\) soni beriladi. \(n\) soniga eng yaqin tub sonni chop eting. Ular 2 ta bo’lsa, ikkovini ham chop eting.
Eng yaqin son deb kiritigan son bilan absolut ayirmasi eng kichik tub songa teng bo'lgan songa aytiladi
Kiruvchi ma'lumotlar:
Bitta butun son \(k (1 \le k \le 10^9)\) beriladi.
Chiquvchi ma'lumotlar:
Masala javobini chiqaring.
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
12 |
11 13 |
2 |
27 |
29 |
3 |
80 |
79 |