一只菜弱鸡
一只菜弱鸡
全部文章
分类
未归档(3)
题解(60)
归档
标签
去牛客网
登录
/
注册
一只菜弱鸡的博客
全部文章
(共65篇)
题解 | #字符串排序#
#include <iostream> using namespace std; int main() { string str; char zm[1000]; int n = 0; getline(cin,str); for(int i = 0; i < ...
C++
2022-04-15
0
298
题解 | #单词倒排#
读入一行字符串,正则遍历找出符合要求的子串,压入栈,输出(出栈)直到栈空。 #include <iostream> #include <string> #include <regex> #include <stack> using namespace ...
C++
2022-04-15
1
318
题解 | #图片整理#
#include<bits/stdc++.h> using namespace std; int main() { string str; while(cin>>str){ sort(str.begin(),str.end()); cout...
C++
2022-04-15
0
289
题解 | #蛇形矩阵#
按数字大小123....观察矩阵下标的变化: (0,0),(1,0)(0,1),(2,0)(1,1)(0,2),(3,0)(2,1)(1,2)(0,3)...x+y之和始终等于所在的行数 i , i 从0增加到n-1,第 i 行有 i+1 个数。 #include <iostream> ...
C++
2022-04-15
4
330
题解 | #坐标移动#
#include <string> #include <iostream> #include <vector> #include <algorithm> #include <regex> using namespace std; void ...
C++
2022-04-15
0
329
题解 | #字符串分隔#
#include <bits/stdc++.h> using namespace std; int main() { string str; cin>>str; int s , y, lng; lng = str.length(); s =...
C++
2022-04-12
0
361
题解 | #计算某字符出现次数#
#include <bits/stdc++.h> using namespace std; int main () { string str; getline(cin,str); char c; cin>>c; int lg = str....
C++
2022-04-12
0
315
题解 | #提取不重复的整数#
#include <bits/stdc++.h> using namespace std; int main() { int datain, rmdr; cin>>datain; int tick[10] = {0}; while(datai...
C++
2022-04-11
0
371
题解 | #字符个数统计#
#include <bits/stdc++.h> using namespace std; int main () { vector<char> vch; char ch; while(cin>>ch) vch.empl...
C++
2022-04-11
0
277
题解 | #字符串反转#
#include <bits/stdc++.h> using namespace std; int main() { vector<char> ch; char s; while(cin>>s) ch.push_back(...
C++
2022-04-11
0
273
首页
上一页
1
2
3
4
5
6
7
下一页
末页