
HDU
水果妹妹踩前端的坑
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2018HDU多校赛-6322D - Problem D. Euler Function【找规律】
In number theory, Euler’s totient function φ(n) counts the positive integers up to a given integer n that are relatively prime to n. It can be defined more formally as the number of integers k in the ...原创 2018-08-03 22:15:56 · 290 阅读 · 0 评论 -
2018HDU多校赛-Problem L. Visual Cube 【模拟】
Little Q likes solving math problems very much. Unluckily, however, he does not have good spatial ability. Everytime he meets a 3D geometry problem, he will struggle to draw a picture. Now he meets a ...原创 2018-08-04 11:21:24 · 362 阅读 · 0 评论 -
超有爱的并查集~【真的超有趣】
例子就是杭电上的畅通工程: http://acm.hdu.edu.cn/showproblem.php?pid=1232 首先在地图上给你若干个城镇,这些城镇都可以看作点,然后告诉你哪些对城镇之间是有道路直接相连的。最后要解决的是整幅图的连通性问题。比如随意给你两个点,让你判断它们是否连通,或者问你整幅图一共有几个连通分支,也就是被分成了几个互相独立的块。像畅通工程这题,问还需要修几条路,实质...转载 2018-09-03 19:20:20 · 309 阅读 · 0 评论 -
HDU--2602--Bone Collector 【01背包】
题目链接 Problem Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the ...原创 2018-09-12 16:15:43 · 175 阅读 · 0 评论 -
HDU--1114Piggy-Bank【完全背包】
题目链接 Problem Description Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM)...原创 2018-09-13 10:04:43 · 188 阅读 · 0 评论 -
HDU--2191 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活【多重背包】
Problem Description 急!灾区的食物依然短缺! 为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品,其价格不等,并且只能整袋购买。 请问:你用有限的资金最多能采购多少公斤粮食呢? 后记: 人生是一个充满了变数的生命过程,天灾、人祸、病痛是我们生命历程中不可预知的威胁。 月有阴晴圆缺,人有旦夕祸福...原创 2018-09-13 10:53:21 · 197 阅读 · 0 评论 -
HDU--1248 ( 寒冰王座 ) 【完全背包】
题目链接 Problem Description 不死族的巫妖王发工资拉,死亡骑士拿到一张N元的钞票(记住,只有一张钞票),为了防止自己在战斗中频繁的死掉,他决定给自己买一些道具,于是他来到了地精商店前. 死亡骑士:"我要买道具!" 地精商人:"我们这里有三种道具,血瓶150块一个,魔法药200块一个,无敌药水350块一个." 死亡骑士:"好的,给我一个血瓶." 说完他掏出那张N元的大钞递给地...原创 2018-09-13 16:31:25 · 259 阅读 · 0 评论