题解列表

筛选

最大公约数,最小公倍数

摘要:解题思路:先找最大公约数,在利用最小公倍数=两数乘积/最大公约数公式求解。注意事项:参考代码:#include<stdio.h>int zd(int m,int n){    int t;    wh……

python代码正确100%&&&&&&&

摘要:解题思路:注意事项:参考代码:a,n = map(int,input().split()) #使用map函数循环输入print(a**n)……

组合的输出(python)

摘要:解题思路:注意事项:参考代码:def combine(n, k):    def backtrack(combination, start, n, k, res):        if k == 0:……

2864: 单词替换

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;class Main {    public static void main(String[] args) {    ……

我的很简洁

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {    int max = -0x7fffffff; // 初始化最大值为负无穷    int num;   ……

合法C标识符

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;class Main {    public static void main(String[] args) {    ……

递归求解java

摘要:解题思路:编写递归函数,在主函数中调用这个函数以便求得第n位与第n+1位的结果,将结果相除就ok啦注意事项:double与float的区别,java中float数据在第8位进行四舍五入,因此要用dou……