题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:l,m=map(int,input().split())x=[]for i in range(0,m): a,b=map(int,input().split()) …… 题解列表 2024年03月26日 0 点赞 0 评论 181 浏览 评分:0.0
注意换行输出 摘要:解题思路:注意事项:参考代码:a=[]n,m=map(int,input().split())for i in range(0,n+m): a.append(list(map(int,input…… 题解列表 2024年03月26日 0 点赞 0 评论 183 浏览 评分:0.0
2657: 蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:n = int(input())a = 0for i in range(0,n): if i == 0 or i == (n -1): a = (2 * n - 2) els…… 题解列表 2024年03月26日 0 点赞 0 评论 249 浏览 评分:9.9
小白随便写的,记录一下 摘要:```python def max_join(a, b, n): a.sort() b.sort(reverse=True) max_join = 0 # 记录最大配…… 题解列表 2024年03月26日 0 点赞 0 评论 189 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python rmb = [100, 50, 10, 5, 2, 1] def change_money(li): new_li = [0 for i in range(len(r…… 题解列表 2024年03月26日 0 点赞 0 评论 246 浏览 评分:0.0
2873: 字符串p型编码 摘要:解题思路:注意事项:参考代码:s = input() + ' ' a = "" b = 1 for i in range(len(s) - 1): if s[i] ==…… 题解列表 2024年03月26日 0 点赞 0 评论 355 浏览 评分:0.0
1273: ISBN码 摘要:解题思路:注意事项:参考代码:while True: try: s = input() s1 = "".join(s.split('-')…… 题解列表 2024年03月26日 0 点赞 0 评论 451 浏览 评分:0.0
编写题解 2815: 求特殊自然数,python超简单 摘要:# 定义函数 decimal_to_base,用于将十进制数转换为指定基数的字符串表示 def decimal_to_base(n, base): # 如果输入的数是0,则直接返回…… 题解列表 2024年03月26日 0 点赞 0 评论 368 浏览 评分:0.0
2871: 单词倒排 摘要:解题思路:注意事项:参考代码:print(" ".join(input().split()[::-1]))…… 题解列表 2024年03月26日 0 点赞 0 评论 305 浏览 评分:0.0
2870: 单词翻转 摘要:解题思路:注意事项:参考代码:s = input().split() arr = [] for i in s: arr.append(i[::-1]) print(" ".join(a…… 题解列表 2024年03月26日 0 点赞 0 评论 413 浏览 评分:0.0