随笔分类 - 

Blue Jeans(串)
摘要:Time Limit:1000MSMemory Limit:65536KTotal Submissions:10083Accepted:4262DescriptionThe Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how the Earth was populated.As an IBM researche 阅读全文
posted @ 2013-08-14 09:25 straw_berry 阅读(172) 评论(0) 推荐(0)
串的匹配
摘要:题目描述给定两个字符串string1和string2,判断string2是否为string1的子串。输入输入包含多组数据,每组测试数据包含两行,第一行代表string1,第二行代表string2,string1和string2中保证不出现空格。输出对于每组输入数据,若string2是string1的子串,则输出"YES",否则输出"NO"。示例输入abca12345645abcddd示例输出YESYESNO 1 #include 2 #include 3 int main() 4 { 5 char s1[65535],s2[65535]; 6 int i 阅读全文
posted @ 2013-06-26 20:19 straw_berry 阅读(207) 评论(0) 推荐(0)