ramily
ramily
全部文章
分类
归档
标签
去牛客网
登录
/
注册
ramily的博客
TA的专栏
12篇文章
0人订阅
C++每日一练
12篇文章
385人学习
全部文章
(共81篇)
题解 | #字符串加密#
#include <iostream> #include <vector> #include <string> using namespace std; int main() { string key, str; while (cin >&...
2023-03-04
0
323
题解 | #蛇形矩阵#
#include <iostream> using namespace std; // 看懂了不代表会做,一定要自己动手写一遍 int main(){ int n; cin >> n; int k = 1; // 观察输出的蛇形矩阵,我们会发现...
2023-03-04
0
250
题解 | #图片整理#
#include <iostream> #include <algorithm> using namespace std; int main() { string str; while (cin >> str) { sort(st...
2023-03-03
0
210
题解 | #字符串合并处理#
#include <iostream> #include <algorithm> using namespace std; string join(string s1,string s2){ //第一步,合并 string s; s = s1 + s...
2023-03-02
0
285
题解 | #字符串加解密#
#include <iostream> using namespace std; string encrypt(string s1) { string res; for (auto c : s1) { if (c >= 'a' && c < ...
2023-03-02
0
210
题解 | #查找兄弟单词#
#include <iostream> #include <vector> #include <algorithm> using namespace std; // 构造布尔函数,判断word是否是x的兄弟单词 bool isBrotherWord(string ...
2023-03-01
0
289
题解 | #删除字符串中出现次数最少的字符#
#include <iostream> #include <unordered_map> using namespace std; int main() { string str; int min = 27; unordered_map<cha...
2023-03-01
0
261
题解 | #汽水瓶#
#include <iostream> using namespace std; int bottle_n(int n){ if (n == 1){ return 0; } else if (n == 2){ return 1; ...
2023-03-01
0
259
题解 | #求int型正整数在内存中存储时1的个数#
#include <iostream> using namespace std; int main() { int num,n_1; cin >> num; while (num) { if ((num & 1) == 1){ ...
2023-02-28
0
215
题解 | #字符串排序#
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n; cin >> n; str...
2023-02-27
0
211
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页