_becky
_becky
全部文章
分类
题解(76)
归档
标签
去牛客网
登录
/
注册
_becky的博客
加油~
TA的专栏
76篇文章
0人订阅
华为机考
76篇文章
1138人学习
全部文章
(共75篇)
题解 | #字符串合并处理#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { string str1, str2, ans; while (cin >> str1 >> str2) { ...
C++
2022-03-21
0
370
题解 | #判断两个IP是否属于同一子网#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { vector<int> mask(4,0),ip1(4,0),ip2(4,0); char c; while (cin>>m...
C++
2022-03-21
0
407
题解 | #简单错误记录#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { string s; map<string,int>m; deque<string>d; while(getline(...
C++
2022-03-21
2
293
题解 | #识别有效的IP地址和掩码并进行分类统计#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { vector<int> arr(7, 0); string s; while(getline(cin, s)) { ...
C++
2022-03-21
2
361
题解 | #明明的随机数#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n) { set<int> s;//自动实现去重和排序 ...
C++
2022-03-21
14
322
题解 | #输入n个整数,输出其中最小的k个#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { int n,k,t; while(cin>>n>>k) { vector<int>v; ...
C++
2022-03-17
0
432
题解 | #截取字符串#
来自专栏
#include<bits/stdc++.h> using namespace std; int main () { string str; int n; while(cin>>str>>n) cout<<str...
C++
2022-03-17
0
185
题解 | #坐标移动#
来自专栏
#include<iostream> #include<vector> using namespace std; int main() { string str; cin >> str; int x = 0, y = 0, len = st...
C++
2022-03-11
0
314
题解 | #将真分数分解为埃及分数#
来自专栏
#include<iostream> #include<string> using namespace std; int main() { long long z,m; while(scanf("%lld/%lld",&z,&m)!=EOF) ...
C++
2022-03-10
0
296
题解 | #从单向链表中删除指定值的节点#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { int n,head; cin>>n>>head;//输入结点数和头结点的值 forward_list<int>...
C++
2022-03-10
1
307
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页