题解列表
c++字符串简单解法
摘要:解题思路:注意事项:参考代码:#include<iostream> #include<stdlib.h>using namespace std;int main(){ int a,n; cin>>a>……
C语言思路简单,易懂!!! 理解万岁
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int f(int n){ if (n==1||n==0){ return 0;……
c++sort简单解法
摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip>#include<math.h>#include<algorithm>using namespac……
c++stl sort简单解法
摘要:解题思路:sort函数在algorithm库中sort(a,a+i)升序排序注意事项:参考代码:#include<iostream> #include<iomanip>#include<math.h>……
绝对是这道题最短代码,轻松解决
摘要:import math
def is_jx(n):
return sum(math.factorial(int(digit)) for digit in str(n)) == n
jx_……
我来告诉你高手怎么解题
摘要:from itertools import permutations
options = [7, 6, 5, 4, 3, 2, 1]
for perm in permutations(option……
字符串距离:一种典型动态规划
摘要:解题思路:在这个题目中,要求求两个字符串之间的最小距离,在初始化字符串的时候先分别考虑两个字符串为空的情况,当其中一个为空时,另外一个字符串对应的每一个字符的位置上都是加k(空字符与任意字符的距离),……
温度转换Python
摘要:解题思路:注意事项:参考代码:F=float(input())c=5*(F-32)/9print("c=%.2f"%c)……
1997: 日期换算
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int mai……