综合
文章平均质量分 79
Y251673671
这个作者很懒,什么都没留下…
展开
-
hdu 3415 堆优化
<br />//2523048 2010-06-07 13:40:55 Accepted 3415 453MS 4992K 1613 B C++ T&T <br />//用堆优化循环 看了别人的程序才知道 <br />//直接用循环复杂度为o(n*k) 是TLE <br />#include<iostream><br />#include<cstdio><br />#include<queue><br />#include<algorithm><br />using namespace std;<br /原创 2010-06-13 16:30:00 · 591 阅读 · 0 评论 -
hdu 1198
<br />//很有意思的一个题目 判断连通则并集<br />#include<iostream><br />#include<cstdio><br />#include<string><br />using namespace std;<br />struct node{<br /> int x;<br /> int y;<br />};<br />node p[52][52];<br />int deep[52][52];<br />int dir[4][2] = {{-1,0},{1, 0},{0,原创 2010-06-15 13:28:00 · 776 阅读 · 0 评论 -
hdu 1829
<br />// Accepted 1829 312MS 260K 1912 B C++ <br />//写程序不是一般的粗心 case次数居然输出了 wrong了十几次 <br />//开两个集合 一个是异性 一个同性<br />#include<iostream><br />#include<cstdio><br />using namespace std;<br /> struct{<br /> int parent;<br /> int mate;<br />}bug[2100];<原创 2010-06-15 13:31:00 · 795 阅读 · 0 评论