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BgAQn4QBAMQnYQAA8UkYAEB8EgYAEJ+EAQDEd5CE8fH9LPfuw+dnP0QA4MUdIGF8fD97//HLly9fvnz+8E7GAIBjdNhREhEDAI7TYRPGx/ezop4BAByRQyaMj+9NxACA43SwhPH5wzv5AgCO1WEShngBAMftEAnD6AgAHLuXTxjVzTAK5noCwLFxT08AIL7ehPGpIGEAANtSwwAA4pMwAID4JAwAID4JAwCIT8IAAOKTMACA+CQMACA+CQMAiE/CAADikzAAgPgkDAAgPgkDAIhPwgAA4pMwAID4JAwAID4JAwCIT8IAAOKTMACA+CQMACA+CQMAiE/CAADikzAAgPgkDAAgPgkDAIhPwgAA4pMwAID4JAwAID4JAwCIT8IAAOKTMACA+CQMACC+QyWMzx/ezTLvPnx+3kMEAF7cIRLG5w/vZrP3H5//4ACAAzlAwvj4Xt0CAI7cyyeMj+9n7z58eD8zSAIAx+sgCaM2RvLxvQETADg+B6phfO77FQA4BoepYdSqFhIGAByhw8z0LEPF5w/vBAwAOD4HuR9GdTMM8QIAjpJ7egIA8UkYAEB8EgYAEJ+EAQDEJ2EAAPFJGABAfBIGABCfhAEAxCdhAADxSRgAQHwSBgAQX/yEAQDwKW7CAAAYIGEAAPFJGABAfBIGABCfhAEAxCdhAADxSRgAQHwSBgAQ3/8DeJsWFklqgDEAAAAASUVORK5CYII=" alt="" />
-------------------------------
这道题是有技巧的,比如:
2+4+6+8...+n
= 2*1 + 2*2 + 2*3 + 2*4 + ... + 2*(n/2)
= 2* (1+2+3+4...+(n/2))
=2 * ( (n/2)*(1+n/2)/2) 即d为1的等差数列和公式,因为复杂的公式我记不住...
=(n/2)*(1+n/2)
别问我为什么这么2b,因为我数学是体育老师教的还都还回去了了....
只好百度等差数列公式:
嗯,至少应用在这个题上这个还不如我胡乱发明的简便吶,所以也就不改动代码了,不管黑猫白猫,能抓老鼠就是好吃的猫。
AC代码:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); boolean first=true; while(first || reader.ready()){
first=false; int n=Integer.parseInt(reader.readLine()); n=n%==?n:n-; System.out.println((n/)*(+n/)); } } }
题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=611
NYOJ题目611练练的更多相关文章
- nyoj 题目2 括号配对问题
描述 今天发现了nyoj,如获至宝.准备开刷. 括号配对问题 现在,有一行括号序列,请你检查这行括号是否配对. 输入 第一行输入一个数N(0<N<=100),表示有N组测试数据.后面的 ...
- NYOJ题目27水池数目
--------------------------------------------- 这道题有点坑,也怪我总是有点马虎,按照正常人的思维0是表示有水池啊竟然是1表示有水池,最坑的是写反了竟然还能 ...
- NYOJ题目20吝啬的国度
-----------------------------------------n-1条边的无向连通图是一棵树,又因为树上两点之间的路径是唯一的,所以解是唯一的.(注意并不一定是二叉树,所以最好采用 ...
- NYOJ题目28大数阶乘
-------------------------------------祭出BigInteger AC代码: import java.math.BigInteger; import java.uti ...
- NYOJ题目198数数
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsYAAAK1CAIAAABEvL+NAAAgAElEQVR4nO3drXLkurvv8X0T4bmQYF
- NYOJ题目170网络的可靠性
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAs8AAANvCAIAAACte6C6AAAgAElEQVR4nOydPbLcNhOu7yaUayGOZy
- NYOJ题目168房间安排
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAssAAAOTCAIAAADGwNmiAAAgAElEQVR4nOy9PY7cyLPufTchXwsZu9
- NYOJ题目125盗梦空间
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAssAAANLCAIAAAA4rUfgAAAgAElEQVR4nOydq7LdyrKm+yXM/SDG4y
- NYOJ题目124中位数
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAssAAAJUCAIAAABsWvwaAAAgAElEQVR4nO3dPXLjuraG4TsJ5xqIYw
随机推荐
- MySQL 8.0.0 版本发布,亮点都在这了!
导读 MySQL是一个开放源码的小型关联式数据库管理系统,开发者为瑞典MySQL AB公司.目前MySQL被广泛地应用在Internet上的中小型网站中.由于其体积小.速度快.总体拥有成本低,尤其是开 ...
- 怎样删除一键GHOST 文件件名为~1的备份文件?
早些时候备份过系统,但是后来觉的该备份系统不够完美,想删除.可是备份文件被保护,无法删除.(1)在网上查看了一下: start X:\~1 attrib -s -h -r X:\~1\C_PAN.GH ...
- Laravel 5.1 文档攻略 —— Eloquent:模型关系
简介 其实大家都知道,数据表之间都是可以关联的,前面讲过了,Eloquent ORM是数据模型操作代替表操作,那么表的关联查询,在Eloquent这里也就是模型间的关联查询,这就是本章的主要内容: E ...
- mysql bin-log 使用说明
如何开启bin-log日志? vi /etc/my.cnf [mysqld] log-bin=mysql-bin 默认开启 ls /usr/local/mysql/data/ mysql-bin.00 ...
- 初识Flask
首先在学习flask的前提,我是使用了很久的django和tornado,现在在写总结也是本着工作后方便使用flask 少点东西,对flask的介绍和优点总结 1.安装 pip install fla ...
- 单独使用CKfinder上传图片
首先引入ckfinder.js <script type="text/javascript" src="<%=request.getContextPath() ...
- 【GoLang】tcmalloc && jemalloc
https://www.douban.com/note/512625720/ http://blog.csdn.net/hanxin1987216/article/details/8156010 ht ...
- C++ 代码头注释模板
/********************************************************************************* *Copyright(C),You ...
- Call to undefined function mysql_connnect()
PHP Fatal error: Call to undefined function mysql_connnect() in /var/www/html/mysqltest.php on line ...
- PHP带重试功能的curl
2016年1月13日 10:48:10 星期三 /** * @param string $url 访问链接 * @param string $target 需要重试的标准: 返回结果中是否包含$tar ...