上一页 1 2 3 4 5 6 7 8 ··· 28 下一页
摘要: 题目链接:http://www.codeforces.com/problemset/problem/281/A题意:将一个英文字母的首字母变成大写,然后输出。C++代码: #include <cstdio> #include <cstring> char s[1100]; void solve(ch 阅读全文
posted @ 2016-07-20 23:26 月光诗人 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.codeforces.com/problemset/problem/131/A题意:字符串大小写转换。C++代码: #include <cstdio> #include <cstring> char s[110]; bool islow(char c) { retur 阅读全文
posted @ 2016-07-20 23:17 月光诗人 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.codeforces.com/problemset/problem/339/A题意:重新组合加法字符串,使得按照1,2,3的顺序进行排列。C++代码: #include <iostream> #include <string> using namespace std; 阅读全文
posted @ 2016-07-20 21:30 月光诗人 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.codeforces.com/problemset/problem/112/A题意:忽略大小写,比较两个字符串字典序大小。C++代码: #include <cstdio> #include <cstring> int cmp(char *s, char *t) { w 阅读全文
posted @ 2016-07-20 21:17 月光诗人 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.codeforces.com/problemset/problem/96/A题意:判断一个0-1字符串中出现的最长的0字串或者1字串的长度是否大于等于7。C++代码: #include <cstdio> #include <iostream> #include <st 阅读全文
posted @ 2016-07-20 21:07 月光诗人 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.codeforces.com/problemset/problem/118/A题意:字符串转换……C++代码: #include <string> #include <iostream> using namespace std; string s; bool _in( 阅读全文
posted @ 2016-07-20 18:59 月光诗人 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.codeforces.com/problemset/problem/71/A题意:将长字符串改成简写格式。C++代码: #include <string> #include <iostream> using namespace std; int n; string s 阅读全文
posted @ 2016-07-20 18:46 月光诗人 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.codeforces.com/problemset/problem/327/A题意:你现在有n张牌,这些派一面是0,另一面是1。编号从1到n,你需要翻转[i,j]区间的牌一次,使得看到的牌是1的数量最大。C++代码: #include <iostream> using 阅读全文
posted @ 2016-07-20 18:39 月光诗人 阅读(304) 评论(0) 推荐(1) 编辑
摘要: 题目链接:http://www.codeforces.com/problemset/problem/155/A题意:找到当前最大值或者最小值出现的次数。“当前”的意思差不多是a[i]大于所有a[j](j小于i)或者大于所有a[j]。C++代码: #include <iostream> using n 阅读全文
posted @ 2016-07-20 18:23 月光诗人 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.codeforces.com/problemset/problem/509/A题意:f[i][1]=f[1][i]=1,f[i][j]=f[i-1][j]+f[i][j-1],求f[n][n]。C++代码: #include <iostream> using name 阅读全文
posted @ 2016-07-20 18:14 月光诗人 阅读(217) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 28 下一页