HDU_ACM
文章平均质量分 82
红烧春鸽
这个作者很懒,什么都没留下…
展开
-
A+B for Input-Output Practice (I)
遵从了师兄的建议,从http://acm.hdu.edu.cn的acm steps开始学习,进入了第一题,发现是个坑...A+B for Input-Output Practice (I)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)原创 2013-11-16 20:17:36 · 765 阅读 · 0 评论 -
HDU 3047 Zjnu Stadium 带权并查集
#include int pa[500010], dis[500010];int find(int x) { if(pa[x] == x) return x; int t = find(pa[x]); dis[x] += dis[pa[x]]; return pa[x] = t;}int main() { int n, m; while(~s原创 2014-08-09 00:41:46 · 616 阅读 · 0 评论 -
HDU 4821 String 字符串hash
冲突最小的哈希方法之一 BKDRHash原创 2014-11-03 20:15:17 · 690 阅读 · 0 评论 -
HDU 4819 Mosaic 二维线段树
二维RMQ问题用二维线段树可以实现 可以原创 2014-11-03 02:17:11 · 873 阅读 · 0 评论