摘要: 题目连接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1503 是树,递归即可 学习一下fgets的用法http://blog.csdn.net/dai 阅读全文
posted @ 2017-04-27 22:56 yijiull 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目连接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1070 将每个单词首字母和尾字母抽象成两个点,中间一条有向边 判断是否存在欧拉路径 存在欧拉路径 阅读全文
posted @ 2017-04-27 21:24 yijiull 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 题目连接:UVA - 10305 拓扑排序 lrj167 1 #include<cstdio> 2 #include<cstring> 3 #include<set> 4 #include<iostream> 5 #include<cctype> 6 #include<string> 7 #incl 阅读全文
posted @ 2017-04-27 17:52 yijiull 阅读(169) 评论(0) 推荐(0) 编辑