博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【Codeforces Round #451 (Div. 2) A】Rounding
阅读量:4458 次
发布时间:2019-06-08

本文共 763 字,大约阅读时间需要 2 分钟。

【链接】

【题意】

在这里输入题意

【题解】

模拟

【代码】

/*    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 
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;}

转载于:https://www.cnblogs.com/AWCXV/p/8051367.html

你可能感兴趣的文章
函数放到onload里面,在html里面执行函数会报错-----作用域和闭包相关问题
查看>>
自学html--one(div布局)
查看>>
LCM ADN GCD
查看>>
C++之编译器与链接器工作原理
查看>>
Bootstrap: 样式CSS:carousel轮换 图片的使用
查看>>
new和new[]的区别
查看>>
读书笔记之《高效人士的七个习惯》
查看>>
VS2017 IIS 部署.net core web项目
查看>>
java虚拟机学习(一)
查看>>
Ubuntu部署jmeter
查看>>
P1064 金明的预算方案
查看>>
一文告诉你git如何使用
查看>>
linux常用命令(学习笔记)
查看>>
PJSIP-PJLIB-Socket
查看>>
[Gamma]Scrum Meeting#10
查看>>
selenium--等待的三种方式
查看>>
nautilus-open-terminal很有用的插件--鼠标右键打开终端
查看>>
android中自定义的dialog中的EditText无法弹出输入法解决方案
查看>>
Android Activity整体管理和关闭工具类封装
查看>>
nginx 安装
查看>>