代码太难写
代码太难写
全部文章
分类
归档
标签
去牛客网
登录
/
注册
代码太难写的博客
全部文章
(共196篇)
题解 | #跳台阶扩展问题#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param number int整型 * @return int整型 */ ...
2023-06-25
0
299
题解 | #查找输入整数二进制中1的个数#
#include <iostream> using namespace std; int main() { int a, cnt = 0; while (cin >>a) { // 注意 while 处理多个 case while(a){ ...
2023-06-25
0
208
题解 | #求最小公倍数#
#include <iostream> #include <numeric> using namespace std; int main() { int a, b; while(scanf("%d %d", &a, &b) != EOF) { ...
2023-06-25
0
203
题解 | #数字在升序数组中出现的次数#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param k int整型 ...
2023-06-18
0
207
题解 | #输入n个整数,输出其中最小的k个#
#include <iostream> #include<algorithm> using namespace std; int main() { int n,m; int*nums = nullptr; cin>>n&g...
2023-06-14
0
190
题解 | #判断元素是否出现#
#include<bits/stdc++.h> #include<vector> using namespace std; int main(){ //write your code here...... vector<int>nums; int n,m,x...
2023-06-04
0
355
题解 | #使用算法#
#include <iostream> #include <vector> #include<algorithm> // write your code here...... using namespace std; int main() { int...
2023-06-04
3
272
题解 | #最后k个元素#
#include<bits/stdc++.h> using namespace std; int main(){ int n,k; vector<int>a; // write your code here...... cin>>n>>...
2023-06-04
0
214
题解 | #迭代器遍历set#
#include<bits/stdc++.h> using namespace std; int main(){ set<int>s; // write your code here...... int n; for(int i = 0;i<5;i++){ ...
2023-06-04
0
229
题解 | #迭代器遍历容器#
#include <iostream> // write your code here...... #include<vector> using namespace std; int main() { // write your code here...... ...
2023-06-04
0
268
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页