牛客249212431号
牛客249212431号
全部文章
分类
华为机试-python版(4)
题解(2)
归档
标签
去牛客网
登录
/
注册
牛客249212431号的博客
全部文章
(共96篇)
题解 | #找到数组里的第k大数(C++)#
#include<bits/stdc++.h> #include <vector> #include <algorithm> using namespace std; int main(){ int n,k; vector<int>a; // ...
2024-06-04
0
238
题解 | #统计字符串中各类型字符的个数#
#include <iostream> #include <cstring> #include <cctype> using namespace std; int main() { int letter = 0; int digit = 0;...
2024-06-04
0
251
题解 | #使用算法#
#include <iostream> #include <vector> // write your code here...... #include <algorithm> using namespace std; int main() { in...
2024-06-04
0
195
题解 | #判断元素是否出现#
#include<bits/stdc++.h> using namespace std; int main(){ //write your code here...... map<int, int> freq; int n, m, x, a; cin >>...
2024-06-04
0
181
题解 | #查找#
#include<bits/stdc++.h> using namespace std; int main(){ set<int>s; //write your code here...... int n, m, x, a; cin >> n >&g...
2024-06-04
0
187
题解 | #统计字符串中各字母字符对应的个数#
#include <iostream> // write your code here...... #include <map> #include <cctype> using namespace std; int main() { char str[...
2024-05-29
0
225
题解 | #去除字符串中重复的字符#
#include <iostream> // write your code here...... #include <set> using namespace std; int main() { char str[100] = { 0 }; cin.ge...
2024-05-29
2
225
题解 | #最后k个元素#
#include<bits/stdc++.h> using namespace std; int main(){ int n,k; vector<int>a; // write your code here...... cin >> n >> ...
2024-05-29
0
182
题解 | #智能排队系统#
#include <iostream> #include <deque> using namespace std; class Guest { public: string name; bool vip; Guest(string name, bo...
2024-05-29
0
184
题解 | #迭代器遍历set#
#include<bits/stdc++.h> using namespace std; int main(){ set<int>s; // write your code here...... for (int i = 0; i < 5; ++i) { in...
2024-05-29
0
193
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页