题解列表

筛选

getchar解决问题

摘要:解题思路:先输入再用字符比较注意事项:i与j的比较参考代码:#include <stdio.h>int main(){ int word = 0, number = 0, tab = 0, other……

汉诺塔(python)

摘要:解题思路:注意事项:参考代码:def hanoi(n, a, b, c):    if n > 0:        hanoi(n - 1, a, c, b)        print(&#39;mo……

判断元素是否存在

摘要:解题思路:注意事项:参考代码:def is_element_of_M(k, x):    if k == x:        return "YES"    elif k > x:        re……

因子分解(Python)

摘要:解题思路:注意事项:参考代码:def factorize_expression(n):    factors = []    i = 2    while i * i <= n:        if ……

集合的划分

摘要:解题思路:注意事项:参考代码:def partition_count(n, k):    dp = [[0] * (k+1) for _ in range(n+1)]    for i in rang……

2815:求特殊自然数(java)

摘要:解题思路:a+b*7+c*49=a*81+b*9+c注意事项:题目中的输入格式实际是输出格式参考代码:public class Main {    public static void main(St……