摘要: #include #define inf 1q; bool vis[100000]; memset(vis,0,sizeof vis); vis[s]=1; dis[s]=0; q.push(s); while(!q.empty()){ int f=q.front(); q.pop(); vis[f]... 阅读全文
posted @ 2017-08-14 23:54 euzmin 阅读(195) 评论(0) 推荐(0) 编辑
摘要: The shortest common superstring of 2 strings S 1 and S 2 is a string S with the minimum number of characters which contains both S 1 and S 2 as a sequ 阅读全文
posted @ 2017-08-14 23:03 euzmin 阅读(286) 评论(0) 推荐(0) 编辑