c++stl sort简单解法 摘要:解题思路:sort函数在algorithm库中sort(a,a+i)升序排序注意事项:参考代码:#include<iostream> #include<iomanip>#include<math.h>…… 题解列表 2023年10月17日 0 点赞 0 评论 229 浏览 评分:0.0
绝对是这道题最短代码,轻松解决 摘要:import math def is_jx(n): return sum(math.factorial(int(digit)) for digit in str(n)) == n jx_…… 题解列表 2023年10月17日 0 点赞 0 评论 432 浏览 评分:9.9
我来告诉你高手怎么解题 摘要:from itertools import permutations options = [7, 6, 5, 4, 3, 2, 1] for perm in permutations(option…… 题解列表 2023年10月17日 0 点赞 0 评论 349 浏览 评分:9.9
字符串距离:一种典型动态规划 摘要:解题思路:在这个题目中,要求求两个字符串之间的最小距离,在初始化字符串的时候先分别考虑两个字符串为空的情况,当其中一个为空时,另外一个字符串对应的每一个字符的位置上都是加k(空字符与任意字符的距离),…… 题解列表 2023年10月17日 0 点赞 0 评论 323 浏览 评分:9.9
温度转换Python 摘要:解题思路:注意事项:参考代码:F=float(input())c=5*(F-32)/9print("c=%.2f"%c)…… 题解列表 2023年10月17日 1 点赞 0 评论 646 浏览 评分:0.0
1997: 日期换算 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月17日 0 点赞 0 评论 156 浏览 评分:0.0
1991: 面向对象设计之时间类 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; class T…… 题解列表 2023年10月17日 0 点赞 0 评论 591 浏览 评分:0.0
1989: 奇数个数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月17日 0 点赞 0 评论 171 浏览 评分:9.9
1988: 求总时间-----递归 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; double …… 题解列表 2023年10月17日 0 点赞 0 评论 209 浏览 评分:0.0
1987: 考试评级 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int sco…… 题解列表 2023年10月17日 0 点赞 0 评论 169 浏览 评分:0.0