简单就好201710200501870
简单就好201710200501870
全部文章
分类
题解(20)
归档
标签
去牛客网
登录
/
注册
简单就好201710200501870的博客
全部文章
(共52篇)
题解 | #翻转单词序列#
class Solution { public: string ReverseSentence(string str) { if(str.empty()){ return str; } string ...
2024-11-01
0
61
题解 | #验证回文字符串(二)#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 * @return bool布尔型 *...
2024-11-01
0
64
题解 | #简写单词#
#include <iostream> #include <cctype> using namespace std; string Toupper_string(string str) { for(int i=0; i<=str.size(); i++){...
2024-11-01
0
60
题解 | #竞选社长#
#include <iostream> using namespace std; int main() { string str; cin>>str; int cnt_a=0; int cnt_b=0; for(int ...
2024-11-01
0
62
题解 | #添加逗号#
#include <iostream> #include<string> using namespace std; int main() { string str; cin>>str; int count=0; for(i...
2024-11-01
0
71
题解 | #[NOIP2008]笨小猴#
#include <iostream> using namespace std; int main() { string str; cin >> str; int cnt[26] = {0}; for (int i = 0; i <...
2024-11-01
0
52
题解 | #登录验证#
#include <iostream> using namespace std; int main() { int a, b; string str_user; string str_pswd; cin>>str_user; ci...
2024-11-01
0
48
题解 | #登录验证#
// #include <iostream> // using namespace std; // int main() { // int a, b; // string str_user; // string str_pswd; // cin>...
2024-11-01
0
34
题解 | #[NOIP2018]标题统计#
#include <iostream> #include <string> using namespace std; int main() { string str; // cin>>str; int count=0; ...
2024-11-01
0
48
题解 | #统计字符串中子串出现的次数#
#include <iostream> #include <cstring> using namespace std; int main() { char str[100] = { 0 }; char substr[100] = { 0 }; c...
2024-10-31
0
70
首页
上一页
1
2
3
4
5
6
下一页
末页