![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDU刷题
玄蛰
心中一壶酒,手上一把吉他,座前一台电脑,便是江湖
展开
-
HDU1003 结题报告(最大子序列和)
HDU1003 Max Sum 题解#include<iostream>#include<algorithm>#include<string>#include<math.h>#include<set>#include<map&am原创 2018-09-02 10:02:00 · 361 阅读 · 0 评论 -
HDU 1004 Let the Balloon Rise (STL map)
HDU 1004 Let the Balloon Rise题解#include<iostream>#include<algorithm>#include<string>#include<math.h>#include<set>#includ原创 2018-09-02 10:34:51 · 150 阅读 · 0 评论 -
HDU1005 Number Sequence
此题很明显是一道求数列中的某一项问题,一般的出题思路就是将要查找的那一项设置成十分大,往往会超过数组的最大大小,通常这样的题暴力的话一定会TLE,所以关键在于找规律(这也是做过很多类似的提后才发觉的),这种题一般情况下都存在循环,所以只需找到循环节,计算出周期即可。AC代码#include<iostream>#include<string>#include<m...原创 2018-10-25 20:06:41 · 211 阅读 · 0 评论 -
HDU1406——完数
完数的定义:如果一个大于1的正整数的所有因子之和等于它的本身,则称这个数是完数,比如6,28都是完数:6=1+2+3;28=1+2+4+7+14。本题的任务是判断两个正整数之间完数的个数。INPUT 输入数据包含多行,第一行是一个正整数n,表示测试实例的个数,然后就是n个测试实例,每个实例占一行,由两个正整数num1和num2组成,(122 55 7Sample Output...原创 2018-04-18 22:08:21 · 390 阅读 · 0 评论 -
HDU1061——Rightmost Digit
Problem DescriptionGiven a positive integer N, you should output the most right digit of N^N.InputThe input contains several test cases. The first line of the input is a single integer T which i...原创 2018-04-19 00:22:13 · 162 阅读 · 0 评论