题解列表

筛选

[递归]母牛的故事

摘要:解题思路:注意事项:参考代码:while True:    n=int(input())    l=[1,2,3]    if n==0:        break    else:        f……

用高精度除于低精度,求余数是否为0

摘要:解题思路:高精度除低精度 ,要运用小学教的除法运算思路,用flag标记是否有因子输出,如无,则输出none注意事项:参考代码:#include<stdio.h> #include<string.h>i……

就是通过分支选择来写

摘要:解题思路:注意事项:“整数”还有一个长边和短边的顺序好像也要调整一下参考代码:def inchjudge1(n):    lside=1189     #初始设置边长    rside=841    ……

2818: 分离整数的各个数位

摘要:解题思路:注意事项:参考代码:a = input() for i in a[::-1]:     print(i,end=&#39; &#39;)代码2:a = input() a = a[::……

二维数组对角线遍历——找规律

摘要:解题思路:找行列之间坐标的规律,发现行列坐标之和成递增趋势,且输出顺序为先行后列(从行为0开始循环)注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int m……

c++解题思路

摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){    int x,y;    cin >> x;    if(x>=10)        ……

二维列表+Python特性

摘要:解题思路:获取下标,找到对应的已经存好地数据注意事项:A0——A9是10个数,向下取整可直接用int()参考代码:s=int(input()[1]) m,n=1189,841 result=[] ……

2916: 谁考了第k名(python)

摘要:解题思路:注意事项:参考代码:def KEY(x):     return float(x[1])      n,k = map(int,input().strip().split()) nu……