2011年8月31日
摘要: poj 2513题目大意:给一些彩色棒,看能不能组成一个解决:trie+无向图欧拉路(偶数结点度数为0或者2)clude <iostream> #include <cstring>#include <cstdio>using namespace std;struct node{ int next[26]; int wordNo;};int top;int num;node tree[2000000];short adj[510010];int data[510010];void init(){ top=1; num=0; memset(data,-1,si. 阅读全文
posted @ 2011-08-31 20:52 猿类的进化史 阅读(363) 评论(0) 推荐(0) 编辑