2013年10月1日

hdu4463 Outlets 最小生成树

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4463很裸的一道题目,稍微处理一下输入即可代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 us... 阅读全文

posted @ 2013-10-01 20:13 GyyZyp 阅读(175) 评论(0) 推荐(0) 编辑

zoj3204 Connect them 最小生成树

摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3367题目就是简单的最小生成树的模板的应用,不过最小生成树可能不唯一,答案要求输出字典序最小代码: 1 #include 2 #include 3 #include... 阅读全文

posted @ 2013-10-01 16:40 GyyZyp 阅读(134) 评论(0) 推荐(0) 编辑

hdu4764 Stone 博弈

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4764很水的博弈题目代码: 1 #pragma comment(linker, "/STACK:1024000000,1024000000") 2 #include 3 #include 4 using namespace std; 5 6 int n,k; 7 int main() 8 { 9 while(scanf("%d%d",&n,&k) == 2)10 {11 if(n == 0 && k == 0)break;12 阅读全文

posted @ 2013-10-01 16:34 GyyZyp 阅读(180) 评论(0) 推荐(0) 编辑

导航