自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:def function(x): a, b, c, d = 0, 0, 0, 0 for i in x: if i.isalpha(…… 题解列表 2024年04月18日 0 点赞 0 评论 341 浏览 评分:0.0
自定义函数之整数处理 摘要:解题思路:注意事项:先交换大的,再交换小的。参考代码:arr = list(map(int, input().split())) max_number = max(arr) min_number …… 题解列表 2024年04月18日 0 点赞 0 评论 624 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:n = int(input()) arr = list(map(str, input().split())) m = int(input()) print('…… 题解列表 2024年04月18日 0 点赞 0 评论 411 浏览 评分:0.0
3156: 蓝桥杯2023年第十四届省赛真题-景区导游 摘要:解题思路:利用公式dis[a]-dis[b]-2*dis[lca(a,b)]求出a与b之间的距离,dis为此节点到根节点的距离注意事项:参考代码:#include<bits/stdc++.h> us…… 题解列表 2024年04月18日 0 点赞 0 评论 376 浏览 评分:0.0
数字的处理与判断 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年04月18日 0 点赞 0 评论 214 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main { public static void main(String[] args) { …… 题解列表 2024年04月18日 0 点赞 0 评论 275 浏览 评分:0.0
打印较大的质因数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,i,j,max; scanf("%d",&n); …… 题解列表 2024年04月18日 0 点赞 0 评论 432 浏览 评分:0.0
python解求得最大值 摘要:### 解题代码: ```python n = int(input()) sz = [list(map(int, input().strip().split())) for _ in range…… 题解列表 2024年04月18日 0 点赞 0 评论 176 浏览 评分:0.0
汽水瓶解法3种 摘要:解题思路:解题思路就是先把第一次换的汽水数和余下空瓶数求出来,再把换的汽水喝掉并把空瓶记录下来再去判断空瓶能否置换汽水,一直下去直到置换的汽水喝完,最后判断空瓶是否=2是就将总置换数+1注意事项:后续…… 题解列表 2024年04月19日 0 点赞 0 评论 194 浏览 评分:0.0
1042: [编程入门]电报加密 摘要:解题思路:注意事项:参考代码:s = input() arr = "" for i in range(len(s)): if s[i] == ' ': …… 题解列表 2024年04月19日 0 点赞 0 评论 262 浏览 评分:0.0