Sss+
Sss+
全部文章
分类
题解(22)
归档
标签
去牛客网
登录
/
注册
Sss+的博客
WT......
全部文章
(共26篇)
题解 | #自守数#
#include <bits/stdc++.h> using namespace std; inline int findk(int& n){ int k = 1; while(k<=n){ k*=10; } return k; }...
2023-04-09
0
229
题解 | #数组分组#
#include <bits/stdc++.h> using namespace std; bool dfs(vector<int>& sel, int target, int k){ if(k>=sel.size()&&target!=0) return f...
2023-04-09
0
312
题解 | #合法IP#
#include <iostream> #include <sstream> using namespace std; bool isnum(string& s){ int n = 0; if(s.empty()) return false; els...
2023-04-09
0
324
题解 | #百钱买百鸡问题#
#include <iostream> using namespace std; int main() { // 鸡公 5 鸡母 3 鸡仔1/3 int n; while (cin >> n) { for(int i=0;i<1...
2023-04-08
0
239
题解 | #矩阵乘法计算量估算#
#include <cctype> #include <iostream> #include <stack> #include <vector> using namespace std; int main() { int n; whi...
2023-04-08
0
240
题解 | #成绩排序#
#include <algorithm> #include <functional> #include <iostream> #include <utility> #include <vector> using namespace std;...
2023-04-08
0
271
题解 | #24点游戏算法#
#include <iostream> #include <vector> using namespace std; bool dfs(vector<int>& arr, vector<bool>& used, int k, double res){...
2023-04-08
0
286
题解 | #字符串排序#
#include <bits/stdc++.h> using namespace std; int main() { string s; while (getline(cin, s)) { string raw_s = s; stable...
2023-04-07
0
253
题解 | #树的子结构#
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class ...
2023-03-09
2
419
题解 | #剪绳子#
class Solution { public: int cutRope(int number) { vector<int> dp(number + 1, 0); dp[2] = 1; dp[3] = 2; dp[4...
2023-03-08
0
356
首页
上一页
1
2
3
下一页
末页