题解列表
收费--java语言
摘要:解题思路:注意事项:使用double数据类型参考代码:import java.util.Scanner;
public class Main {
public static void mai……
模拟计算器--java语言
摘要:解题思路:注意事项:输入字符的写法非nextChar() 正确写法为:next().charAt(0)参考代码:import java.util.Scanner;
public class Ma……
2902:输出最高分数的学生姓名 python实现(极简方法)
摘要:解题思路:本来想保存最大值,然后找对应的名字,后面发现找到最大值的时候可以直接用student保存学生的名字,最后直接输出该名字即可。注意事项:没有用到字典。参考代码:n = int(input())……
n阶Hanoi塔问题
摘要:解题思路:注意事项:参考代码:def hanoi(n, a, b, c, count): if n > 0: count = hanoi(n-1, a, c, b, count) ……
自定义函数之字符串拷贝
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str1[100],str2[100]; int m, n,i,j; scanf("%d", &n);……