python 1098: 陶陶摘苹果 摘要:**没什么好注意的,按题目要求来** ```python a = list(map(int,input().strip().split())) b = int(input().strip()…… 题解列表 2024年09月06日 0 点赞 0 评论 433 浏览 评分:0.0
python与指定数字相同的数的个数 摘要:**主要是用了count方法来查找列表中指定元素的个数** ```python a = list(map(int,input().strip().split())) while len(a) <…… 题解列表 2024年09月06日 1 点赞 0 评论 476 浏览 评分:0.0
python求整数的和与均值 摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split()))while len(a)<=a[0]: a.extend(map(int,input().spl…… 题解列表 2024年09月05日 0 点赞 0 评论 806 浏览 评分:5.3
python整数平均值 摘要:解题思路:注意事项:参考代码:while True: try: a = int(input()) b = list(map(int,input().strip().s…… 题解列表 2024年09月05日 1 点赞 0 评论 431 浏览 评分:0.0
python解题方式 摘要:解题思路:注意事项:参考代码:a = []while len(a) < 12: a.append(float(input()))b = sum(a)/12print('$%.2f'…… 题解列表 2024年09月05日 0 点赞 0 评论 610 浏览 评分:9.9
python--study||O.o 摘要:参考代码: def main(): n = int(input()) t = dict() mx = -1 for i in range(n): &nb 题解列表 2024年09月02日 0 点赞 0 评论 304 浏览 评分:10.0
python--study||O.o 摘要:参考代码: def main(): n = int(input()) arr = [int(x) for x in input().split()] find = in…… 题解列表 2024年09月02日 0 点赞 0 评论 228 浏览 评分:10.0
1197: 发工资咯(贪心算法) 摘要:核心:票票从大开始扣,数量是最少的代码:while True: l = [int(x) for x in input().split()] n = l[0] if n =…… 题解列表 2024年08月30日 0 点赞 0 评论 323 浏览 评分:0.0
1198: 取石子游戏 摘要:核心: 威佐夫博弈 a == (int)((b - a) * ((sqrt(5) + 1) / 2)):先手输,其他则先手赢代码:from math import sqrt while T…… 题解列表 2024年08月30日 0 点赞 0 评论 186 浏览 评分:0.0
1190: 剔除相关数 摘要:核心:就挺难说的,暴力求解吧代码:def func(l): c = [] l1 = [0] * len(l) res = [] for i in range(l…… 题解列表 2024年08月29日 0 点赞 0 评论 191 浏览 评分:0.0