编写题解 2330: 信息学奥赛一本通T1178-成绩排序(Python) 摘要:解题思路:利用sorted()函数进行排序注意事项:首先按成绩排序,如果成绩相同则按名字升序参考代码:n = int(input())sc_dict = {}for i in range(n): …… 题解列表 2024年11月23日 0 点赞 0 评论 436 浏览 评分:9.9
不懂可评论 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) deter=b*b-4*a*c x1=(-b+deter**0.5)/2*a x2=(-b-deter…… 题解列表 2024年11月23日 0 点赞 0 评论 255 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:year=int(input()) if((year%4==0)and(year%100!=0)or(year%400==0)): print("Y") e…… 题解列表 2024年11月23日 0 点赞 0 评论 218 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:x=int(input()) for pen4 in range(x//4,-1,-1):#优先买4元的笔,开始循环递减到0结束 remaining=x-pe…… 题解列表 2024年11月21日 0 点赞 0 评论 220 浏览 评分:9.9
不懂可评论 摘要:解题思路:注意事项:参考代码:days= ['Monday', 'Tuesday', 'Wednesday', 'Thursday', …… 题解列表 2024年11月20日 1 点赞 0 评论 273 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:luggage=float(input()) if luggage<=20: print("%.2f"%(luggage*1.68)) else: …… 题解列表 2024年11月20日 0 点赞 0 评论 216 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:t=int(input()) if 25<=t<=30: print("ok!") else: print("no!")…… 题解列表 2024年11月20日 0 点赞 0 评论 246 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:num=list(map(int,input().split())) num.sort() for i in num: print(i,end=" ")…… 题解列表 2024年11月20日 0 点赞 0 评论 412 浏览 评分:0.0
不懂评论简化 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) for i in range(5): a[i]//=3 up=4 if(i==0)…… 题解列表 2024年11月18日 0 点赞 0 评论 203 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:#简易 a=list(map(int,input().strip().split())) a[4]+=a[0]//3 a[1]+=a[0]//3 a[0]//…… 题解列表 2024年11月18日 0 点赞 0 评论 196 浏览 评分:0.0