6 条题解

  • 1
    @ 2025-6-8 22:03:35

    def find_combinations(): results = [] for a in range(100, 334): b = 2 * a c = 3 * a combined = str(a) + str(b) + str(c) if len(combined) == 9 and set(combined) == set('123456789'): results.append(f"{a} {b} {c}") return results

    combinations = find_combinations() for combo in combinations: print(combo)

    【桶思想的应用】验证数据存在性

    信息

    ID
    912
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    (无)
    递交数
    220
    已通过
    106
    上传者