题解列表
getchar解决问题
摘要:解题思路:先输入再用字符比较注意事项:i与j的比较参考代码:#include <stdio.h>int main(){ int word = 0, number = 0, tab = 0, other……
题解 1120: C语言训练-"水仙花数"问题2
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c; for(int i=100;i<100……
汉诺塔(python)
摘要:解题思路:注意事项:参考代码:def hanoi(n, a, b, c): if n > 0: hanoi(n - 1, a, c, b) print('mo……
因子分解(Python)
摘要:解题思路:注意事项:参考代码:def factorize_expression(n): factors = [] i = 2 while i * i <= n: if ……
第一个带类的程序题解(Python代码)
摘要:class Date(object): def __init__(self,time): self.__year=0 self.__month=0 se……
2815:求特殊自然数(java)
摘要:解题思路:a+b*7+c*49=a*81+b*9+c注意事项:题目中的输入格式实际是输出格式参考代码:public class Main { public static void main(St……