摘要:
照旧,先上下我的暴力破解法:#include #include #include using namespace std;string ToLower(string ss){ string::iterator itr; for(itr=ss.begin();itr!=ss.end();i... 阅读全文
posted @ 2015-09-08 22:25 lsr_flying 阅读(550) 评论(0) 推荐(0)
|
||
|
摘要:
照旧,先上下我的暴力破解法:#include #include #include using namespace std;string ToLower(string ss){ string::iterator itr; for(itr=ss.begin();itr!=ss.end();i... 阅读全文
posted @ 2015-09-08 22:25 lsr_flying 阅读(550) 评论(0) 推荐(0)
摘要:
#include using namespace std;int value[3]={5,3,1};int weight[3]={1,1,3};int num[3]={0,0,0};int BuyHen(int money,int i){ if(i==2) { if(mon... 阅读全文
posted @ 2015-09-08 16:33 lsr_flying 阅读(230) 评论(0) 推荐(0)
摘要:
该程序只满足匹配第一个相同的字符串,对于出现第二个相同字符的字符串无法解决。#include #include #include using namespace std;int IsMatch(string rule,string sub){ int k=0; int c=0; while(k>ru... 阅读全文
posted @ 2015-09-08 13:49 lsr_flying 阅读(992) 评论(0) 推荐(0) |
||