3Qstark
3Qstark
全部文章
hwOJ
huawei(1)
Leecode(1)
Tips(1)
总结类(2)
未归档(1)
归档
标签
去牛客网
登录
/
注册
学习刷题记录博客
Stay hungry,stay foolish
全部文章
/ hwOJ
(共17篇)
OJ37 统计兔子的个数
#include <iostream> using namespace std; // num[1] = 1; // num[2] = 1; // num[3] = 2; // num[4] = 3; // num[5] = 5; // num[6] = 8; // num[7] = 1...
2021-07-06
0
306
OJ22 空水瓶问题
#include <iostream> using namespace std; // 递归思路:三个瓶子换一瓶水+一个空瓶 // f(0) = 0; // f(1) = 0; // f(2) = 1; // f(3) = 1; // f(4) = f(2) + 1; // f(5)...
2021-07-06
0
271
OJ17 坐标移动
#include<iostream> #include <string> #include <sstream> #include <vector> using namespace std; int main() { string st; ...
2021-06-22
0
276
OJ 18
识别有效的IP地址 #include <iostream> #include <string> #include <vector> #include <sstream> using namespace std; // 首先判断IP地址是否合法,是否...
2021-06-21
0
426
OJ12
字符串颠倒 //直接库函数,不整花里胡哨的 #include <iostream> #include <string> #include <algorithm> using namespace std; int main(){ string str; ...
2021-06-04
0
270
OJ11
数字颠倒 输入描述:输入一个int整数输出描述:将这个整数以字符串的形式逆序输出 #include <iostream> #include <string> #include <algorithm> using namespace std; int main(...
2021-06-02
0
324
111
函数中const func& flagconst+引用类型的作用
2021-05-20
0
264
OJ10
字符个数统计 输入一行没有空格的字符串,仅统计0~127 ascii值内的字符 #include <iostream> #include <unordered_set> using namespace std; int main(){ string ss; ...
2021-05-19
0
337
OJ9
提取不重复的整数 输入int型的整数————9876673从右往左输出,不重复的新整数————37689 //方法一:将原int型整数以string类型输入,用一个vector对重复的字符进行操作,最后输出 #include<iostream> #include<vector>...
2021-05-19
0
373
OJ8
合并表格记录 输入:40 10 21 23 4输出:0 31 23 4 #include <iostream> #include <map> using namespace std; int main() { int n; while(cin >&g...
2021-05-16
0
861
首页
上一页
1
2
下一页
末页