丢掉大脑!无脑分糖果! 摘要:解题思路:把糖果数目放到列表里,用最大值最小值判断是否全部相等注意事项:参考代码:n = int(input())list0 = list(map(int,input().split()))sum =…… 题解列表 2024年03月18日 0 点赞 0 评论 389 浏览 评分:0.0
编写题解 2788: 晶晶赴约会,python超简单 摘要:解题思路:用列表注意事项:无参考代码:# 获取用户输入的日期(星期几)day = int(input())# 定义一个列表,包含晶晶的上课日busy_days = [1, 3, 5]# 判断输入的日期…… 题解列表 2024年03月18日 0 点赞 0 评论 595 浏览 评分:2.0
直接解方程组 摘要:解题思路:注意事项:参考代码:x, a, y, b = map(int, input().split())m = b*y - a*xn = b- ares= m / nprint('%.2f&…… 题解列表 2024年03月17日 1 点赞 0 评论 585 浏览 评分:0.0
python选择排序 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))a.sort()for i in a: print(i)…… 题解列表 2024年03月17日 0 点赞 0 评论 298 浏览 评分:0.0
汽水瓶(python代码) 摘要:解题思路:注意事项:参考代码while True: n=int(input()) if n==0: break c=0 while n>=3: c=…… 题解列表 2024年03月17日 0 点赞 0 评论 367 浏览 评分:0.0
题解 2810: 鸡尾酒疗法 摘要:参考代码:a=int(input())b=[]for i in range(1,a+1): x,y=map(int,input().split()) if i<=1: c=y…… 题解列表 2024年03月17日 0 点赞 0 评论 443 浏览 评分:9.9
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:s=0a=list(map(int,input().split()))b=list(map(int,input().split()))for i in b: if …… 题解列表 2024年03月17日 0 点赞 0 评论 367 浏览 评分:0.0
题目 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:循环注意事项:无参考代码:n=int(input())s=1for i in range(1,n+1): s=s*iprint(s)…… 题解列表 2024年03月17日 0 点赞 4 评论 309 浏览 评分:9.9
2810: 鸡尾酒疗法 (Python版)(简单易懂) 摘要:解题思路:用二维数组参考代码:#输入nn=int(input())#单独输入鸡尾酒实验数据jwj=list(map(int,input().split()))#在数组末尾增设实验结果jwj.appen…… 题解列表 2024年03月17日 0 点赞 2 评论 703 浏览 评分:9.9
题解 1332: 津津的储蓄计划 摘要:解题思路:注意事项:参考代码:list1 = [] # 每月预算 for i in range(12): list1.extend(map(int, input().split())) …… 题解列表 2024年03月17日 0 点赞 0 评论 351 浏览 评分:0.0