摘要: #include#include#include#include#includeusing namespace std;const int N=256;const int inf=0x7fffffff;struct Edge{ int from,to,cap,flow,cost... 阅读全文
posted @ 2015-08-21 14:54 xryz 阅读(135) 评论(0) 推荐(0)
摘要: 考虑输出yes的几种情况 - s和t直接相等 - 不相等时,s长度小于t - s是t的子串 - t的开头几个字母都相同时,s的也必须相同#includeusing namespace std;char s[100000+5],t[100000+5];int main(){ in... 阅读全文
posted @ 2015-08-21 11:05 xryz 阅读(185) 评论(0) 推荐(0)