随笔分类 -  TC

SRM587 div2
摘要:250:题意 给你两个字符串,问你B串是否可以由A串任意插入z得到 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 class InsertZ11 {12 public:13 string canTransform(string , string );14 };15 16 string InsertZ::canTransform(string init, string goal)17 {18... 阅读全文

posted @ 2013-08-02 16:35 爱∪ 阅读(226) 评论(0) 推荐(0)

SRM585 div2
摘要:250: 题意:给你n个数,让你求这段数里有多少个单调递增序列 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 class LISNumberDivTwo10 {11 public:12 int calculate(vector);13 };14 15 int LISNumberDivTwo::calculate(vectorseq)16 {17 int n = seq.size();18 int... 阅读全文

posted @ 2013-07-28 11:48 爱∪ 阅读(223) 评论(1) 推荐(0)

导航