Codeforces Round #451 (Div. 2) A. Rounding
来源:互联网 发布:手机淘宝6.10.3 编辑:程序博客网 时间:2024/05/22 11:25
题目大意
将数四舍五入…
题解
逗比题…
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>using namespace std;int read(){ char ch=getchar();int f=0; while(ch<'0'||ch>'9') ch=getchar(); while(ch>='0'&&ch<='9') {f=f*10+(ch^48);ch=getchar();} return f;}int main(){ int x=read(); if(x%10>=5) { printf("%d",x/10*10+10); } else printf("%d",x/10*10);}
阅读全文
0 0
- Codeforces Round #451 (Div. 2) A. Rounding
- Codeforces Round #204 (Div. 1) A. Jeff and Rounding
- Codeforces Round #204 (Div. 2) C. Jeff and Rounding
- Codeforces Round #204 (Div. 2) C Jeff and Rounding
- Codeforces Round #402 (Div. 2) B. Weird Rounding
- Codeforces Round #402 (Div. 2) B. Weird Rounding
- Codeforces Round #402 (Div. 2)B. Weird Rounding【暴力枚举】
- Codeforces Round #402 (Div. 2) B. Weird Rounding(爆搜)
- Codeforces Round #402 (Div. 2) B. Weird Rounding
- Codeforces Round #451 (Div. 2) a
- Codeforces Round #451 (Div. 2) A-B
- Codeforces Round #451 (Div. 2) A
- Codeforces #402 (Div. 2) B. Weird Rounding
- cf434 div.2 A. k-rounding
- Codeforces 898A. Rounding
- Codeforces 898 A Rounding
- Codeforces Round #451 (Div. 2) A-C题解
- Codeforces Round #451 (Div. 2) A-B 题解
- Spring+SpringMVC+Mybatis框架的搭建
- LeetCode 240. Search a 2D Matrix II
- 布尔变量
- mysql快速检测字段里数据重复
- Docker概念,安装与基础命令
- Codeforces Round #451 (Div. 2) A. Rounding
- uwsgi-listen-queue-full解决方案
- 一些新手经常遇到的python编码错误
- 20171216 leetcode1&leetcode7
- FreeBASIC学习笔记——6.2 函数
- linux中 chmod +x 和 chmod u+x的区别
- PDM文件保密阅读转换方案
- linux 系统如何自动关机和开机
- BZOJ3693:圆桌会议(Hall定理)