题解列表

筛选

1016一行解(Python)

注意事项:强行一行,实际编程意义不大参考代码:foriinrange(100,999):print(i)ifsum(map(lambdax:x**3,list(map(int,list(datafordatainstr(i))))))==ielse0

1018递归解法(Python)

摘要:注意事项:只关注上、下两数的关系即可参考代码:N = int(input())output = 0times = 0def count_sum(up_data, down_data) :    glo……

1367基础解法(Python)

摘要:注意事项:引用sys.stdin来获取输入参考代码:import syslst_tableware = ['fork','chopsticks','bowl&#……

不用二维数组来解题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct st{ int g; char nam……

1023一行解(Python)

解题思路:略注意事项:虽然没用指定方法,但是秉持着解决问题为第一要务,还是记录一下吧参考代码:fordatainsorted(list((map(int,input().split())))):print(data)

常规思路——辗转相除法

摘要:解题思路:辗转相除法注意事项:接受辗转相除法;熟悉交换两个数的值。参考代码:#include<stdio.h>int main(){    int m,n,a,b,temp;    scanf("%d……

敲简单C语言代码!!!

摘要:解题思路:注意事项:一定要确定归零的项首先得不为零!!!参考代码:#include<stdio.h>int main(){    int a,b;    while (scanf ("%d %d",&……

1009一行解(Python)

解题思路:注意事项:lambdaN是定义一个匿名函数,lambda函数名:expression(表达式)等价于def函数名(参数):函数体return返回值不追求简短不必刻意使用lambda表示string.join(str_)是指在str_中的每一个元素后加入string内容,

铺地毯(C语言代码)

解题思路:由a,b,g,k四个参数就能确定一个矩形地毯,进而判断点(x,y)是否在地毯内,既然要求最上面的地毯编号,那就从从上往下看,也就是倒序遍历数组,遇到符合条件的就停止并输出地毯编号,若此处没有被地毯覆盖则输出-1。```c#includetypedefstructTan{intg;//x长in