c++stl sort简单解法 摘要:解题思路:sort函数在algorithm库中sort(a,a+i)升序排序注意事项:参考代码:#include<iostream> #include<iomanip>#include<math.h>…… 题解列表 2023年10月17日 0 点赞 0 评论 670 浏览 评分: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 评论 692 浏览 评分:9.9
我来告诉你高手怎么解题 摘要:from itertools import permutations options = [7, 6, 5, 4, 3, 2, 1] for perm in permutations(option…… 题解列表 2023年10月17日 0 点赞 0 评论 856 浏览 评分:9.9
字符串距离:一种典型动态规划 解题思路:在这个题目中,要求求两个字符串之间的最小距离,在初始化字符串的时候先分别考虑两个字符串为空的情况,当其中一个为空时,另外一个字符串对应的每一个字符的位置上都是加k(空字符与任意字符的距离),初始化完成后开始更新动规数组,其中dp[i][j]表示在A字符的前i个字符, 题解列表 2023年10月17日 0 点赞 0 评论 638 浏览 评分:9.9
温度转换Python 解题思路:注意事项:参考代码:F=float(input())c=5*(F-32)/9print("c=%.2f"%c) 题解列表 2023年10月17日 1 点赞 0 评论 1181 浏览 评分:0.0
1997: 日期换算 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月17日 0 点赞 0 评论 478 浏览 评分:0.0
1991: 面向对象设计之时间类 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; class T…… 题解列表 2023年10月17日 0 点赞 0 评论 995 浏览 评分:0.0
1989: 奇数个数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年10月17日 0 点赞 0 评论 473 浏览 评分:9.9
1988: 求总时间-----递归 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; double …… 题解列表 2023年10月17日 0 点赞 0 评论 599 浏览 评分:0.0
1987: 考试评级 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int sco…… 题解列表 2023年10月17日 0 点赞 0 评论 545 浏览 评分:0.0