Hifipsysta-1172-计算两点间的距离(C++代码) 摘要:```cpp #include #include using namespace std; double distance(double x1, double y1, double x2,…… 题解列表 2022年02月05日 0 点赞 0 评论 359 浏览 评分:0.0
Hifipsysta-1196-去掉空格(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ string str, str_dup; while…… 题解列表 2022年02月05日 0 点赞 0 评论 250 浏览 评分:0.0
01背包问题(动态规划 自下而上递推) 摘要:从小问题递推到大问题 递推dp[i][j]——把前i个物品(从第1个到第i个)装入容量为j的背包中获得的最大价值 从dp[0][0]递推到dp[n][m]就是答案 两种情况: (1)第i个物品…… 题解列表 2022年02月04日 0 点赞 0 评论 707 浏览 评分:9.9
The 3n+1 problem 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;long long len(long long n)…… 题解列表 2022年02月04日 0 点赞 0 评论 225 浏览 评分:0.0
水仙花(这题可以偷懒,三位的水仙花数就四个) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; if(m==153||m==…… 题解列表 2022年02月04日 0 点赞 0 评论 267 浏览 评分:0.0
蓝桥杯算法提高VIP-素数求和(不用一个一个枚举,解决时间超限问题) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ inline int sushu(int i);//使用(inl…… 题解列表 2022年02月04日 0 点赞 0 评论 197 浏览 评分:0.0
Hifipsysta-1140-C语言训练-求车速(C++代码)字符串转换法 摘要:```cpp #include #include using namespace std; bool is_symmetry(int n){ bool flag = false;…… 题解列表 2022年02月04日 0 点赞 0 评论 423 浏览 评分:0.0
Hifipsysta-1112-C语言考试练习题_一元二次方程(C++代码)求根公式法 摘要: ```cpp #include #include using namespace std; int main(){ double a,b,c,result; cin…… 题解列表 2022年02月04日 0 点赞 0 评论 271 浏览 评分:0.0
Hifipsysta-1145-C语言训练-自由落体问题(C++代码) 摘要:```cpp #include #include using namespace std; double journey(double t){ double result; …… 题解列表 2022年02月04日 0 点赞 0 评论 248 浏览 评分:0.0
最大车牌——(非常简单的解法) 摘要:什么都不用说了,因为太简单了 c++直接来一个sort ```c++ #include using namespace std; int main() { int n; …… 题解列表 2022年02月04日 0 点赞 0 评论 568 浏览 评分:9.9