牛客978130688号
牛客978130688号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客978130688号的博客
全部文章
/ 题解
(共4篇)
[编程题]数据分类处理
主要思路:vector接收I数据,set接收R数据(自动去重排序)中间步骤中使用了stringstream实现string与int转换(不熟悉使用可查) #include<bits/stdc++.h> using namespace std; int n1, n2; int main()...
字符串
2021-04-03
1
593
[编程题]简单错误记录
类似华为16年题,可参考,下为代码修改,思想不变。 #include <iostream> #include<bits/stdc++.h> #include<string> #include<algorithm> using namespace st...
字符串
2021-04-03
0
361
密码验证合格程序
#include<bits/stdc++.h> using namespace std; int style(string s) { int sty[4] = {0}; for(int i = 0; i < s.size(); i++) { if(s...
字符串
2021-04-02
0
412
[编程题]识别有效的IP地址和掩码并进行分类统计
#include<bits/stdc++.h> #include<vector> using namespace std; int ip[4], ipy[4]; string s; string s1, s2; int A = 0,B = 0,C = 0,D = 0,E =...
字符串
2021-04-02
1
397