【Codeforces Round #451 (Div. 2) A】Rounding
【链接】 我是链接,点我呀:)
【题意】
【题解】
模拟【代码】
/*
1.Shoud it use long long ?
2.Have you ever test several sample(at least therr) yourself?
3.Can you promise that the solution is right? At least,the main ideal
4.use the puts("") or putchar() or printf and such things?
5.init the used array or any value?
6.use error MAX_VALUE?
7.use scanf instead of cin/cout?
8.whatch out the detail input require
*/
#include <bits/stdc++.h>
using namespace std;
int n;
int main(){
#ifdef LOCAL_DEFINE
freopen("rush_in.txt", "r", stdin);
#endif
ios::sync_with_stdio(0),cin.tie(0);
cin >> n;
int x = n%10;
if (x < 5){
n = n-x;
}else{
n = n-x + 10;
}
cout << n << endl;
return 0;
}