[编程入门]自定义函数处理最大公约数与最小公倍数-题解(Python代码) 摘要:def fun_1(num_1, num_2): # 最大公约数 while not ( num_1 % num_2 == 0): temp = num_1 % num_2 …… 题解列表 2021年04月06日 0 点赞 0 评论 650 浏览 评分:0.0
1465: 蓝桥杯基础练习VIP-回形取数(Python3)模拟 摘要:解题思路:注意事项:参考代码:from itertools import cycle m, n = map(int, input().split()) map_ = [list(map(int…… 题解列表 2021年04月06日 0 点赞 0 评论 627 浏览 评分:0.0
蓝桥杯算法提高VIP-连接乘积(代码简单,解释详细) 摘要:解题思路:注意事项:参考代码:#s是用来比较是否是1到9的全排列(set比较和顺序无关,元素一样就可) s=set(str(i) for i in range(1,10)) #结果列表 re=[…… 题解列表 2021年04月06日 0 点赞 0 评论 918 浏览 评分:0.0
三个字符串的排序,使用strcmp和strcpy函数。 摘要:解题思路:注意事项:数组写大点,我giao。参考代码:#include <stdio.h>#include<stdlib.h>#include<string.h>int main(){ char…… 题解列表 2021年04月06日 0 点赞 0 评论 776 浏览 评分:0.0
蓝桥杯算法提高VIP-铺地毯(这是什么鬼题目,没得水平) 摘要:解题思路:注意事项:参考代码:n=int(input()) c=[list(map(int,input().split())) for _ in range(n)] x,y=map(int,inp…… 题解列表 2021年04月06日 0 点赞 0 评论 888 浏览 评分:0.0
题目 1033: [编程入门]自定义函数之字符提取 摘要:def fun(str): ls = [] for i in str: if i == 'a' or i == 'e' or i == …… 题解列表 2021年04月06日 0 点赞 0 评论 936 浏览 评分:0.0
题目 1035: [编程入门]自定义函数之字符类型统计 摘要:def fun(a, b, c, d,str): for i in str: if i.isalpha(): a = a + 1 elif i.…… 题解列表 2021年04月06日 0 点赞 0 评论 541 浏览 评分:0.0
编写题解 1024: [编程入门]矩阵对角线求和【易懂】 摘要:解题思路:注意事项:参考代码:sum1=0 sum2=0 a=[[0]*3]*3 for i in range(3): a[i]=list(map(int,input().sp…… 题解列表 2021年04月06日 0 点赞 0 评论 533 浏览 评分:0.0
容易理解的C语言代码 摘要:解题思路:输出的时候倒过来输出就可以了注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[100]…… 题解列表 2021年04月06日 0 点赞 0 评论 550 浏览 评分:0.0
python解出来了 摘要:解题思路:注意事项:参考代码:ls = []ls1 =[]n = int(input())zz = input()ls = zz.split()for i in range (n): if ls…… 题解列表 2021年04月06日 0 点赞 0 评论 1011 浏览 评分:0.0