随笔分类 -  字符串-杂题

摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5311Hidden StringDescriptionToday is the 1st anniversary of BestCoder. Soda, the contest manager, gets a... 阅读全文
posted @ 2015-09-09 22:49 GadyPu 阅读(159) 评论(0) 推荐(0)
摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5427A problem of sortingDescriptionThere are many people's name and birth in a list.Your task is to prin... 阅读全文
posted @ 2015-09-06 20:06 GadyPu 阅读(292) 评论(0) 推荐(0)
摘要:题目连接http://poj.org/problem?id=3080Blue JeansDescriptionThe Genographic Project is a research partnership between IBM and The National Geographic Socie... 阅读全文
posted @ 2015-08-31 16:56 GadyPu 阅读(220) 评论(0) 推荐(0)
摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4150Powerful IncantationDescriptionSome dangerous Witches invaded the garden city! As a righteous magici... 阅读全文
posted @ 2015-07-06 12:26 GadyPu 阅读(264) 评论(0) 推荐(0)
摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1381Crazy SearchDescriptionMany people like to solve hard puzzles some of which may lead them to madness... 阅读全文
posted @ 2015-07-06 10:35 GadyPu 阅读(515) 评论(0) 推荐(0)
摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1228A + BDescription读入两个小于100的正整数A和B,计算A+B.需要注意的是:A和B的每一位数字由对应的英文单词给出.Input测试输入包含若干测试用例,每个测试用例占一行,格式为"A ... 阅读全文
posted @ 2015-06-23 16:35 GadyPu 阅读(138) 评论(0) 推荐(0)
摘要:题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5264pog loves szh IDescriptionPog has lots of strings. And he always mixes two equal-length strings. For... 阅读全文
posted @ 2015-06-08 17:30 GadyPu 阅读(250) 评论(0) 推荐(0)
摘要:原题链接:http://ac.jobdu.com/problem.php?pid=1528小白书上的做法,不过这个还要简单些。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using std::max; 7 const int... 阅读全文
posted @ 2015-05-18 16:12 GadyPu 阅读(137) 评论(0) 推荐(0)
摘要:原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1113字符串简单题:stl水过如下: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #inc... 阅读全文
posted @ 2015-05-07 16:20 GadyPu 阅读(145) 评论(0) 推荐(0)
摘要:原题链接:http://ac.jobdu.com/problem.php?pid=1525字符串简单题,注意开有结尾有空格的情况否则pe or wa 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #includ... 阅读全文
posted @ 2015-05-04 21:42 GadyPu 阅读(139) 评论(0) 推荐(0)
摘要:原题链接:http://ac.jobdu.com/problem.php?pid=1530字符串简单题,看似O(n^2)的复杂度10000的数据量会tle,其实最长不重复子串不超过26个嘛。。。如下: 1 #include 2 #include 3 #include 4 #include 5 #in... 阅读全文
posted @ 2015-05-04 21:39 GadyPu 阅读(274) 评论(1) 推荐(0)