2014年4月29日
摘要: 题目描述:给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{ Ni, Ni+1, ..., Nj },其中 1 using namespace std;int max_num(int a,int b);int main(){ int k=0; while(cin>>... 阅读全文
posted @ 2014-04-29 20:35 mnmlist1 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 题目描述:读入两个小于100的正整数A和B,计算A+B.需要注意的是:A和B的每一位数字由对应的英文单词给出.输入:测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出.输出:对每个测试用例输出1行,即A+... 阅读全文
posted @ 2014-04-29 18:52 mnmlist1 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;int main(){ string sa,sb,s; while(getline(cin,s)) { getline(cin,sa); getline(cin,sb); int begin=0; begin=s.fin... 阅读全文
posted @ 2014-04-29 18:18 mnmlist1 阅读(142) 评论(0) 推荐(0) 编辑