Fork me on GitHub
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2010 题目大意:给你段连续的数,把满足条件(数字 每一位的3 == 该数字)的数输出,就是水仙花数 解题思路: 很水,考察取余数(%)的基本运用 代码: 阅读全文
posted @ 2018-07-25 21:55 GerJCS 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2009 题目大意:数列的第一项为n,以后各项为前一项的平方根,求数列的前m项的和 解题思路: 用好sqrt() 函数 阅读全文
posted @ 2018-07-25 21:18 GerJCS 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2007 题目大意:给你段连续数字,让你求 all sum of (偶数2 )and all sum of (奇数3 ) 解题思路: 暴力遍历这段数字,判断奇偶数,搞一下就行,但对于弱菜的我来说还是学到挺多 阅读全文
posted @ 2018-07-25 19:07 GerJCS 阅读(213) 评论(0) 推荐(0) 编辑