空蝉浮舟
空蝉浮舟
全部文章
分类
归档
标签
去牛客网
登录
/
注册
空蝉浮舟的博客
全部文章
(共33篇)
题解C++ | #删除字符串中出现次数最少的字符#
#include<bits/stdc++.h> using namespace std; int main() { string s; while(cin>>s) { vector<int> c(26,0); ...
2024-02-29
0
234
题解C++ | #汽水瓶#
#include <iostream> using namespace std; int main() { int a = 0; int count = 0; while (cin >> a) { // 注意 while 处理多个 case ...
2024-02-29
0
279
题解C++ | #简单密码#
#include<iostream> using namespace std; int main() { int a[26]={2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9}; string str; in...
2024-02-29
0
189
题解C++ | #密码验证合格程序#
#include <iostream> using namespace std; bool is_num(char c) { if (c >= '0' && c <= '9') return true; else ...
2024-02-29
0
303
题解C++ | #简单错误记录#
#include <iostream> #include <string> #include <map> #include <queue> using namespace std; int main() { string s; map...
2024-02-29
0
189
题解C++ | #识别有效的IP地址和掩码并进行分类统计#
#include<iostream> #include<string> #include<sstream> #include<vector> using namespace std; bool teshu(string ip){ string...
2024-02-29
0
158
题解C++ | #坐标移动#
问题: stoi函数遇到字符串为空的时候会出现崩溃,因此要做判空处理。 #include <cctype> #include <iostream> #include <string> #include <vector> using namespace ...
2024-02-28
0
206
题解C++ | #购物单#
#include <iostream> #include <vector> using namespace std; int main() { int N, m; vector<vector<int>> pri(60, vector&...
2024-02-28
0
240
题解C++ | #求int型正整数在内存中存储时1的个数#
#include <iostream> using namespace std; int main() { int a; int sum = 0; cin >> a; while (a > 0) { int te...
2024-02-27
0
192
题解C++ | #字符串排序#
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; bool cmp(string s1, string ...
2024-02-27
0
179
首页
上一页
1
2
3
4
下一页
末页