牛马ID
牛马ID
全部文章
分类
题解(81)
归档
标签
去牛客网
登录
/
注册
牛马ID的博客
全部文章
(共135篇)
题解 | #扑克牌大小#
#include <iostream> #include <string> #include <algorithm> using namespace std; string findMax(const string& line) { &nb...
C/C++
2022-06-01
0
332
题解 | #参数解析#
// 字符串的打印! #include <iostream> #include <string> #include <vector> using namespace std; int mai...
C/C++
2022-05-30
0
284
题解 | #查找组成一个偶数最接近的两个素数#
// 从中间找第一队就是! #include <iostream> #include <algorithm> #include <cmath> using namespace std; bool&nb...
C/C++
2022-05-30
0
284
题解 | #走方格的方案数#
#include <iostream> using namespace std; int getAns(int m,int n){ if(m == 1 || n == 1) return m + n; return getAns(m-1,n) + getAns(m,n...
C++
2022-05-29
0
275
题解 | #另类加法#
class UnusualAdd { public: int addAB(int a, int b) { // if(a == 0) return b; // if(b == 0) return a; // int on = a ^ b; //...
C++
2022-05-29
0
381
题解 | #两种排序方法#
#include <iostream> #include <vector> #include <string> using namespace std; int main() { int n; cin >> n; vector<stri...
C++
2022-05-29
0
450
题解 | #把字符串转换成整数#
class Solution { public: int StrToInt(string str) { int idx = 0; int flag = 1; if(str[0] > '9' || str[0] < '0'){ ...
C++
2022-05-29
0
268
题解 | #不要二#
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main(){ int n,m; cin>>n>>m;...
C++
2022-05-29
1
359
题解 | #不要二#
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main(){ int n,m; cin>>n>>m;...
C++
2022-05-29
0
378
题解 | #连续最大和#
#include <iostream> #include <algorithm> #include <vector> using namespace std; long getMax(long a,long b){ return a > b ? ...
C++
2022-05-28
0
352
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页