HDOJ Is It A Tree?
摘要:
直接通过判断出度和入度确定,这题的结束标志是两个负数(不一定是-1),输入中含有 0 0 这组数据(判为no),最后一组数据后面要留换行,否则PE;http://acm.hdu.edu.cn/webcontest/contest_showproblem.php?cid=1304&pid=1003&ojid=0View Code # include <cstdio># include <cstring># define N 20bool ok;int in[N], out[N];void init(void){ ok = false; memset(in, 阅读全文
posted @ 2012-07-23 22:31 getgoing 阅读(157) 评论(0) 推荐(0)
浙公网安备 33010602011771号