摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=5055题目大意: 给你N位数,每位数是0~9之间。你把这N位数构成一个整数。要求: 1、必须是奇数 2、整数的前面没有0 3、找到一个最大的整数如果满足1、2、3条件,就输出这个数,不满足就输出-1.给个例... 阅读全文
posted @ 2014-09-29 14:54
爱白菜的小昆虫
阅读(326)
评论(0)
推荐(0)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=5053题目大意: 求出A^3+(A+1)^3+(A+2)^3+...+B^3和是多少解题思路: 设f(n)=1~n的立方和,则A^3+(A+1)^3+(A+2)^3+...+B^3=f(B) - f(A - 1... 阅读全文
posted @ 2014-09-29 14:22
爱白菜的小昆虫
阅读(301)
评论(0)
推荐(0)
浙公网安备 33010602011771号