CF898A Rounding

题目描述
Vasya has a non-negative integer nn . He wants to round it to nearest integer, which ends up with 00 . If nn already ends up with 00 , Vasya considers it already rounded.

For example, if n=4722n=4722 answer is 47204720 . If n=5n=5 Vasya can round it to 00 or to 1010 . Both ways are correct.

For given nn find out to which integer will Vasya round it.

输入格式
The first line contains single integer nn ( 0<=n<=10^{9}0<=n<=10
9
) — number that Vasya has.

输出格式
Print result of rounding nn . Pay attention that in some cases answer isn’t unique. In that case print any correct answer.

输入输出样例
输入 #1复制
5
输出 #1复制
0
输入 #2复制
113
输出 #2复制
110
输入 #3复制
1000000000
输出 #3复制
1000000000
输入 #4复制
5432359
输出 #4复制
5432360
说明/提示
In the first example n=5n=5 . Nearest integers, that end

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值