题解列表

筛选

史上最笨比做法

摘要:解题思路:为了达到如题排序输出格式,采用类与容器结合方式,将一个数的最高位设置为排序字段,赋值给类的order属性注意事项:参考代码:class ShuSort{public: ShuSort(int……

标准 A+B for Input-Output Practice (IV)

摘要:解题思路:用数组存放每次结果,再依次输出。注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int i=0; int……

1147: C语言训练-角谷猜想

摘要:参考代码:n = int(input()) while n != 1:     n = int(n)     if n % 2 == 0:         print(f"{n}/2={int……

数据结构-八进制数

摘要:解题思路:注意事项:参考代码:while True:    try:        n = int(input())        oct_num = oct(n)        print(oct_……

1332: 津津的储蓄计划

摘要:参考代码:estimate = [int(input()) for i in range(12)]    #预算 amount = 0   #零花钱 bank = [] flag = True……