
hdu
fadedsun
从质疑自己,到坚定梦想.
展开
-
HDU - 4027 Can you answer these queries? (最全的坑点总结)
题目描述: A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. Each of the battleships can be marked a value原创 2017-08-16 21:36:27 · 508 阅读 · 3 评论 -
HDU - 1540 Tunnel Warfare (奇妙的解法)
题目描述: During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, villages connected by tunnels lay in a line. Ex原创 2017-08-16 16:57:50 · 801 阅读 · 6 评论 -
hdu6112 今夕何夕
今夕何夕今天是2017年8月6日,农历闰六月十五。小度独自凭栏,望着一轮圆月,发出了“今夕何夕,见此良人”的寂寞感慨。为了排遣郁结,它决定思考一个数学问题:接下来最近的哪一年里的同一个日子,和今天的星期数一样?比如今天是8月6日,星期日。下一个也是星期日的8月6日发生在2023年。小贴士:在公历中,能被4整除但不能被100整除,或能被400整除的年份即为闰年。原创 2017-08-12 20:25:12 · 386 阅读 · 1 评论 -
hdu6108 小C的倍数问题(超简单题)
思路:设数为abc,各位数字和为a+b+c,要让abc和a+b+c同时是x的倍数。问在某一进制下有多少个x。。10进制下。。。1,3,9.所以答案为3.。我试着想了一下可以利用加法和乘法的取模规则化解。。数abc可以写成把a+b+c展开,把乘法也展开就可以看到规律了原创 2017-08-12 15:37:17 · 298 阅读 · 1 评论 -
hdu3555 Bomb (秒懂的数位dp)
The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of the time bomb counts from 1 to N. If the current number sequence incl原创 2017-08-09 20:31:25 · 853 阅读 · 7 评论 -
hdu 2199_Can you solve this equation?
hdu_2199题目链接题目描述: Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100; Now please try your lucky. Input The first line of the input contains an原创 2017-08-07 15:15:01 · 426 阅读 · 0 评论 -
hdu-2056-Rectangles
RectanglesTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 25081 Accepted Submission(s): 8163Problem DescriptionGiven two rectangles and the c原创 2017-08-02 21:38:50 · 465 阅读 · 0 评论 -
论学习字典树的心路历程
字典树很简单字典树很简单字典树很简单最开始是看了B站的AC自动机,才知道要用到字典树这个东西。然后,看着qsc大神的视屏就看懂了ac自动机的代码之后再然后隔了好久,遇到了统计难题这个字典树的入门题目然后就看了下字典树的思路就自己用了一上午时间摸索着,按着ac自动机手敲了字典树果不其然,第一发直接re然后数组又开大100呗,就ac了...原创 2018-04-07 12:58:29 · 168 阅读 · 0 评论 -
hdu6370 Werewolf
Werewolf Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 2021 Accepted Submission(s): 577Problem Description“The Werewolves” is a po...原创 2018-08-11 08:55:26 · 256 阅读 · 0 评论