3Qstark
3Qstark
全部文章
分类
huawei(1)
hwOJ(17)
Leecode(1)
Tips(1)
总结类(2)
未归档(1)
归档
标签
去牛客网
登录
/
注册
学习刷题记录博客
Stay hungry,stay foolish
全部文章
(共22篇)
111
函数中const func& flagconst+引用类型的作用
2021-05-20
0
275
OJ10
字符个数统计 输入一行没有空格的字符串,仅统计0~127 ascii值内的字符 #include <iostream> #include <unordered_set> using namespace std; int main(){ string ss; ...
2021-05-19
0
354
OJ9
提取不重复的整数 输入int型的整数————9876673从右往左输出,不重复的新整数————37689 //方法一:将原int型整数以string类型输入,用一个vector对重复的字符进行操作,最后输出 #include<iostream> #include<vector>...
2021-05-19
0
385
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
902
OJ7
取正浮点数的近似整数值 #include <iostream> using namespace std; int main() { double d; cin >> d; cout << static_cast<int>(d ...
2021-05-14
0
279
OJ6
找long型整数的所有质因数,并输出 #include <iostream> #include <cmath> using namespace std; int main(){ long LL; cin >> LL ; // LL的质因子一定...
2021-05-13
0
416
OJ5
基本的进制转换,不过要把16进制的数以字符串的形式输进来,然后进行处理 #include <iostream> #include <string> #include <cmath> using namespace std; int main(){ st...
2021-05-11
0
315
OJ4
字符串分割:按长度8拆分字符串并输出新的字符串,长度不是8的直接补“0” #include <iostream> #include <string> using namespace std; int main(){ string str; while(ci...
2021-05-11
0
305
OJ3
明明的随机数,实现多组数据输入情况下的去重和排序操作 #include <iostream> #include <set> using namespace std; int main(){ int N , n; set<int> ss; ...
2021-05-08
0
314
leecode 1360
日期之间间隔几天 输入date1 = "2019-06-29", date2 = "2019-06-30" 输出 1 class Solution { public: bool leap_year(int year){ retur...
2021-05-06
0
296
首页
上一页
1
2
3
下一页
末页