在吵架的小辣鸡很糊涂
在吵架的小辣鸡很糊涂
全部文章
分类
归档
标签
去牛客网
登录
/
注册
在吵架的小辣鸡很糊涂的博客
全部文章
(共74篇)
题解 | 整型数组合并
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int m, n; cin >> m; ...
2025-08-08
0
15
题解 | 尼科彻斯定理
#include <cmath> #include <iostream> #include <vector> #include <algorithm> #include <numeric> using namespace std; sta...
2025-08-08
0
17
题解 | 公共子串计算
#include <iostream> using namespace std; int main() { string a, b; while (cin >> a >> b) { if (a.size() > b.siz...
2025-08-07
0
17
题解 | 参数解析
#include <iostream> #include <vector> using namespace std; int main() { string s; while (getline(cin, s)) { s += ' '; ...
2025-08-07
0
16
题解 | 计算日期到天数转换
#include <iostream> using namespace std; static bool isLeapYear(int year) { return ((year % 4 == 0) && (year % 100 != 0)) || (year ...
2025-08-07
0
18
题解 | 百钱买百鸡问题
#include <iostream> #include <vector> using namespace std; int main() { int a, b, c; vector<vector<int>> arr; for (int ...
2025-08-06
0
12
题解 | 配置文件恢复
#include <iostream> #include <map> #include <cstring> #include <vector> using namespace std; // 根据空格 分割字符串 static vector<...
2025-08-05
0
15
题解 | 查找两个字符串a,b中的最长公共子串
#include <iostream> using namespace std; int main() { string a, b; while (cin >> a >> b) { string minStr = "&...
2025-08-05
0
14
题解 | DNA序列
#include <iostream> using namespace std; int main() { string s; int n; while (cin >> s >> n) { if (n == s.size...
2025-08-04
0
18
题解 | 查找输入整数二进制中1的个数
#include <iostream> using namespace std; static int countOne(unsigned int n) { int sum = 0; while (n) { if (n & 0x01) ...
2025-08-04
0
16
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页