自定义函数之数字分离(适合新手理解) 摘要:解题思路:注意事项:参考代码:注意事项:一定要注意格式 和审题def person_pratice(n): for i in str(n): print(int(i),en…… 题解列表 2022年04月06日 0 点赞 0 评论 439 浏览 评分:9.9
蓝桥杯2020年第十一届省赛真题-子串分值-贡献值法(C) 摘要:###### ### ## 算法描述:究其根本,是一种减少时间复杂度的算法——减少不必要的比较和存储步骤算法描述:究其根本,是一种减少时间复杂度的算法——减少不必要的比较和存储步骤 ----…… 题解列表 2022年04月06日 0 点赞 1 评论 809 浏览 评分:9.3
[编程入门]自定义函数之字符类型统计(超级容易理解 特别适合新手理解) 摘要:解题思路:注意事项:参考代码:第一种自定义函数方式:def person_pratice(n): ans=0#判断字母 包括大小写 result=0#判断数字 space…… 题解列表 2022年04月06日 0 点赞 1 评论 633 浏览 评分:8.0
暴力模拟移动距离 摘要:```java import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamRead…… 题解列表 2022年04月06日 0 点赞 0 评论 443 浏览 评分:0.0
[编程入门]带参数宏定义练习(暴力解法,超级容易学会) 摘要:解题思路:注意事项:参考代码思路:直接一行输入多个并逆序即为交换x=list(map(int,input().split())) x=x[::-1] for i in x: print(…… 题解列表 2022年04月06日 0 点赞 0 评论 780 浏览 评分:9.9
利用集合的元素不可重复性 摘要:解题思路:注意事项:参考代码:x=input()a=list(x.split())b=set()for i in a: b.add(i)print(len(b))…… 题解列表 2022年04月06日 0 点赞 0 评论 439 浏览 评分:0.0
编写题解 1952: 求长方形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int A,B; scanf("%d %d",&A,&B); printf("C:%d\n…… 题解列表 2022年04月06日 0 点赞 0 评论 441 浏览 评分:0.0
Sine之舞 1、递归 2、for循环 摘要:1、递归#include <stdio.h> int a=0; int n,b; int A(int b) { //A3=sin(1–sin(2+sin(3))) a++; if(…… 题解列表 2022年04月06日 0 点赞 0 评论 613 浏览 评分:9.9
[编程入门]筛选N以内的素数------超级简单 摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(2,n): for j in range(2,i): if i % j ==0:…… 题解列表 2022年04月06日 0 点赞 0 评论 591 浏览 评分:6.0
python 运用库函数collections.Conter解法 摘要:解题思路:我主要说说collections.Conter()的用法.就是将元素数量统计,然后计数并返回一个类似字典的东西,键为元素,值为元素个数。看下面的一个例子 …… 题解列表 2022年04月06日 0 点赞 1 评论 495 浏览 评分:8.0