编写题解 1102: 明明的随机数 摘要:n=int(input()) num=list(map(int,input().split())) num=list(set(num)) num.sort() print(len(num)) …… 题解列表 2022年02月11日 0 点赞 0 评论 567 浏览 评分:9.9
Python题解 1067: 二级C语言-分段函数 摘要:import mathwhile True: x=float(input()) if x >= 4: f=2*x+5 elif x >= 2 and x <4: …… 题解列表 2022年02月11日 0 点赞 0 评论 389 浏览 评分:0.0
2256: 蓝桥杯算法提高-成绩排名 摘要:解题思路:注意事项:参考代码:n=int(input()) d=[] for i in range(n): a,b=map(str,input().split()) …… 题解列表 2022年02月11日 0 点赞 1 评论 312 浏览 评分:9.9
2222: 蓝桥杯算法训练-P0103 摘要:解题思路:注意事项:参考代码:a=input() print(a.lower())…… 题解列表 2022年02月11日 0 点赞 0 评论 382 浏览 评分:0.0
2219: 蓝桥杯算法训练-大等于n的最小完全平方数 摘要:解题思路:注意事项:参考代码:import math n=int(input()) s=int(math.sqrt(n)) s += 1 print(s**2)…… 题解列表 2022年02月11日 0 点赞 0 评论 445 浏览 评分:0.0
2218: 蓝桥杯算法训练-二进制数数 摘要:解题思路:注意事项:参考代码:k,n=map(int,input().split()) s =0 for i in range(k,n+1): st=0 for j in st…… 题解列表 2022年02月11日 0 点赞 0 评论 304 浏览 评分:0.0
python-砝码称重 摘要:解题思路:参考博客https://blog.csdn.net/qq_52441682/article/details/122634449?spm=1001.2101.3001.6650.1&utm_m…… 题解列表 2022年02月11日 0 点赞 3 评论 1627 浏览 评分:9.8
分组背包 python 摘要:解题思路:动态规划,01背包衍生题型,只需多一个循环来遍历决策即可。注意事项:注意背包体积要大于物品体积才能将物品放入参考代码:c, n, t = map(int, input().split())d…… 题解列表 2022年02月11日 0 点赞 0 评论 452 浏览 评分:9.9
2217: 蓝桥杯算法训练-递归求二项式系数值 摘要:解题思路:注意事项:参考代码:k,n=map(int,input().split()) def C(k,n): if k==0 or k==n: return 1 …… 题解列表 2022年02月11日 0 点赞 0 评论 392 浏览 评分:0.0
字符串内排序 摘要:while True: try: n=input() print("".join(sorted(n))) except: &nb 题解列表 2022年02月11日 0 点赞 0 评论 505 浏览 评分:9.9