2021中国年度划水大师
2021中国年度划水大师
全部文章
分类
C/C++基础(11)
Linux(18)
实践教程(2)
操作系统(4)
计算机网络(8)
归档
标签
去牛客网
登录
/
注册
只会写八阿哥
划水大师
全部文章
(共83篇)
题解 | #简单密码#
#include <cctype> #include <iostream> #include <string> using namespace std; int main(int argc, char* argv[]) { string str; ...
2024-02-29
0
178
题解 | #密码验证合格程序#
#include <iostream> #include <string> #include <vector> using namespace std; bool isMoreThan8(const string& str) { return s...
2024-02-29
0
205
题解 | #简单错误记录#
#include <iostream> #include <iterator> #include <string> #include <algorithm> #include <unordered_map> #include <que...
2024-02-29
0
214
题解 | #识别有效的IP地址和掩码并进行分类统计#
第8/10组用例无法通过,代码没问题,是用例的问题。分析如下: 225.240.129.203—255.110.255.255----0 0 0 0 0 1 0 183.181.49.4—255.0.0.0----0 1 0 0 0 1 0 172.177.113.45—255.0.0.0----0...
2024-02-28
0
221
题解 | #坐标移动#
#include <iostream> #include <string> #include <vector> using namespace std; int main(int argc, char* argv[]){ string str; ...
2024-02-28
0
227
题解 | #求int型正整数在内存中存储时1的个数#
#include <iostream> int main(int argc, char* argv[]){ int num; std::cin >> num; int cnt; for( ; num != 0; num >>= 1...
2024-02-22
0
158
题解 | #字符串排序#
排序+可能有重复————multiset #include <iostream> #include <string> #include <set> int main(int argc, char* argv[]){ int n; std::cin...
2024-02-22
0
189
题解 | #句子逆序#
先进后出——栈 #include <iostream> #include <string> #include <stack> int main(int argc, char* argv[]){ std::string word; std::sta...
2024-02-22
0
202
题解 | #字符串反转#
#include <iostream> #include <string> int main(int argc, char* argv[]){ std::string str; std::cin >> str; for(int i = 0...
2024-02-22
0
195
题解 | #数字颠倒#
#include <iostream> #include <string> int main(int argc, char* argv[]){ int n; std::cin >> n; if(n == 0){ std::...
2024-02-22
0
198
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页