wrdoct
wrdoct
全部文章
题解
复习(44)
面经(1)
归档
标签
去牛客网
登录
/
注册
wrdoct的博客
全部文章
/ 题解
(共88篇)
题解 | #图片整理#
来自专栏
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; struct cmp{ bool operator()(char& a, c...
C++
2022-05-07
0
266
题解 | #坐标移动#
来自专栏
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; unordered_map<char, pair<int, int>>...
C++
2022-05-07
0
371
题解 | #24点运算#
来自专栏
#include <iostream> #include <string> #include <unordered_map> #include <vector> #include <algorithm> using namespace s...
C++
2022-05-05
0
268
题解 | #删除字符串中出现次数最少的字符#
来自专栏
#include <iostream> #include <string> #include <unordered_map> #include <vector> #include <algorithm> using namespace s...
C++
2022-05-05
3
273
题解 | #表达式求值#
来自专栏
#include <iostream> #include <string> #include <stack> using namespace std; int calculate(int a, int b, char sym){ switch(sym){...
C++
2022-05-05
0
345
题解 | #四则运算#
来自专栏
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; string changeKuohao(string& s){ for(in...
C++
2022-05-05
0
303
题解 | #字符串排序#
来自专栏
#include<bits/stdc++.h> using namespace std; int main(){ string str = ""; getline(cin, str); char out[1000]; int k = 0; ...
C++
2022-05-05
0
255
题解 | #完全数计算#
来自专栏
#include<bits/stdc++.h> using namespace std; bool isAllNum(int num){ int tmp = 0; for(int i = 1; i < num; i++){ if(num % i ...
C++
2022-05-05
0
253
题解 | #查找输入整数二进制中1的个数#
来自专栏
#include<bits/stdc++.h> using namespace std; void process(int num, int& res){ while(num != 0){ res++; num = num & ...
C++
2022-05-05
0
230
题解 | #百钱买百鸡问题#
来自专栏
#include<bits/stdc++.h> using namespace std; int main(){ int num = 0; cin>>num; int n1 = 0; // 鸡翁个数 int n2 = 0; // 鸡母个数 ...
C++
2022-05-05
0
291
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页