橙子爱吃桃子
橙子爱吃桃子
全部文章
题解
C++字符串笔记(1)
归档
标签
去牛客网
登录
/
注册
橙子爱吃桃子的博客
全部文章
/ 题解
(共70篇)
C++简洁代码:
C++简洁代码: #include<bits/stdc++.h> using namespace std; int main () { int nums; cin >> nums; string str = to_string(nums); r...
2020-06-11
17
1905
C++简洁代码:
C++简洁代码: #include<bits/stdc++.h> using namespace std; int main () { float f; cin >> f; cout << int(f + 0.5) << end...
2020-06-11
17
906
C++简洁代码:
C++简洁代码: #include<bits/stdc++.h> using namespace std; int main () { int n, res = 0; cin >> n; while(n) { if(n % 2) res...
2020-06-11
10
1052
C++简洁代码:
C++简洁代码: #include<bits/stdc++.h> using namespace std; int main () { int core; string res; cin >> core; if (core >= 10) ...
2020-06-11
1
428
C++简洁代码:
C++简洁代码: #include<bits/stdc++.h> using namespace std; int main() { float temp, res = 0; while(cin >> temp) res += temp; printf...
2020-06-11
1
538
C++简洁代码:
C++简洁代码: #include<bits/stdc++.h> using namespace std; int main() { cout<<"Happy New Year*2019*"; return 0; }
2020-06-11
1
528
C++简洁代码:
C++简洁代码: #include<bits/stdc++.h> using namespace std; int main(){ int n, temp, res = 0; cin >> n; while (cin >> temp) ...
2020-06-10
3
493
C++简单代码/2行:
C++简单代码/2行: class Solution { public: vector<int> GetLeastNumbers_Solution(vector<int> input, int k) { sort(input.begin(), inpu...
2020-05-28
14
1109
C++简答代码/hashmap/4行:
C++简答代码/hashmap/4行: class Solution { public: int MoreThanHalfNum_Solution(vector<int> numbers) { unordered_map<int, int> map; ...
2020-05-28
5
774
C++简单代码/符合题意/3行:
C++简单代码/符合题意/3行: class Solution { public: int Sum_Solution(int n) { n && (n += Sum_Solution(n - 1)); //A&&B 1.A为true,则计算并返...
2020-05-28
5
635
首页
上一页
1
2
3
4
5
6
7
下一页
末页