Codeforces Round #451 (Div. 2) A
来源:互联网 发布:网络维护培训 编辑:程序博客网 时间:2024/06/14 05:32
#include<iostream>#include<algorithm>#include<iomanip>#include<cstdio>#include<cstdlib>#include<cstring>#include<string>#include<cmath>#include<set>#include<queue>#include<stack>#include<map>#define PI acos(-1.0)#define in freopen("in.txt", "r", stdin)#define out freopen("out.txt", "w", stdout)#define kuaidian ios::sync_with_stdio(0);using namespace std;typedef long long ll;typedef unsigned long long ull;const int maxn = 2e5 + 7, maxd = 1e8;const ll mod = 1e9 + 7;const int INF = 0x7f7f7f7f;int T, n;int main() { kuaidian; cin >> n; if(n%10 == 0) cout << n << endl; else if(n%10 >= 5) { cout << (n/10+1)*10 << endl; } else { cout << (n/10*10) << endl; } return 0;}
阅读全文
0 0
- Codeforces Round #451 (Div. 2) A. Rounding
- Codeforces Round #451 (Div. 2) a
- Codeforces Round #451 (Div. 2) A-B
- Codeforces Round #451 (Div. 2) A
- Codeforces Round #451 (Div. 2) A-C题解
- Codeforces Round #451 (Div. 2) A-B 题解
- Codeforces Round #131 (Div. 2) A B
- Codeforces Round #174 (Div. 2) Problem A
- Codeforces Round #173 (Div. 2) A.Bit++
- Codeforces Round #181 (Div. 2) A题
- Codeforces Round #184 (Div. 2) A题
- Codeforces Round #185 (Div. 2)--A,B
- Codeforces Round #172 (Div. 2) A题
- Codeforces Round #166 (Div. 2) A题
- Codeforces Round #132 (Div. 2) A题
- Codeforces Round #131 (Div. 2) A题
- Codeforces Round #133 (Div. 2) A题
- Codeforces Round #137 (Div. 2) A题
- Codeforces Round #451 (Div. 2) E
- Codeforces Round #451 (Div. 2) D
- Codeforces Round #451 (Div. 2) C
- 管理感悟:软件的特性
- Codeforces Round #451 (Div. 2) B
- Codeforces Round #451 (Div. 2) A
- Html Agility Pack (HAP) 应用入门
- 使用set
- [Linux驱动炼成记]02-用户空间控制GPIO
- Dubbo 监控中心的介绍与简易监控中心的安装
- 11.6
- 11.7
- 11.9
- 使用setq