2013年5月22日

MUTC 1 B - Holedox Eating STL

摘要: Holedox EatingTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2314Accepted Submission(s): 780Problem DescriptionHoledox is a small animal which can be considered as one point. It lives in a straight pipe whose length is L. Holedox can only move alo 阅读全文

posted @ 2013-05-22 09:20 电子幼体 阅读(118) 评论(0) 推荐(0) 编辑

扩展KMP模板

摘要: #include #include #include using namespace std; const int MM=100005; int next[MM],extand[MM]; char S[MM],T[MM]; void GetNext(const char *T){ int len=strlen(T),a=0; next[0]=len; while(a= p){ int j = (p-k+1)>0 ? (p-k+1) : 0; while(k+j= p){ int j= (... 阅读全文

posted @ 2013-05-22 08:30 电子幼体 阅读(120) 评论(0) 推荐(0) 编辑

MUTC 1 A - Clairewd’s message 扩展KMP

摘要: Clairewd’s messageTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2296Accepted Submission(s): 901Problem DescriptionClairewd is a member of FBI. After several years concealing in BUPT, she intercepted some important messages and she was preparing f 阅读全文

posted @ 2013-05-22 08:29 电子幼体 阅读(119) 评论(0) 推荐(0) 编辑

Uva 11324 - The Largest Clique 缩点 求最大团

摘要: Problem B: The Largest CliqueGiven a directed graphG, consider the following transformation. First, create a new graphT(G)to have the same vertex set asG. Create a directed edge between two verticesuandvinT(G)if and only if there is a path betweenuandvinGthat follows the directed edges only in the f 阅读全文

posted @ 2013-05-22 08:23 电子幼体 阅读(134) 评论(0) 推荐(0) 编辑

MUTC 1 E - Saving Princess claire_ 迷宫搜索

摘要: Saving Princess claire_Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1495Accepted Submission(s): 558Problem DescriptionPrincess claire_ was jailed in a maze by Grand Demon Monster(GDM) teoy.Out of anger, little Prince ykwd decides to break into t 阅读全文

posted @ 2013-05-22 03:21 电子幼体 阅读(185) 评论(0) 推荐(0) 编辑

导航