随笔分类 -  基础训练题解

摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 int main()10 {11 char str[120];12 while(~scanf(... 阅读全文
posted @ 2015-07-05 09:14 煎饼馃子 阅读(192) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 int main()10 {11 //freopen("in.txt","r",stdin);12 ... 阅读全文
posted @ 2015-07-05 09:05 煎饼馃子 阅读(159) 评论(0) 推荐(0)
摘要:判断是不是树输入:每输入一对都为0的数时,表示一组数据输入完毕。每条边有一对正整数表示,第一个数为有向边的起始边,第二个数为有向边的终止点。一对负数的输入就表示输入的结束。输出:每组测试数据输出一行判断结果,若输入的图为树,则输出“Case k is a tree.”,否则输出“Case k is ... 阅读全文
posted @ 2014-11-18 15:11 煎饼馃子 阅读(114) 评论(0) 推荐(0)