Python解统计字符 摘要:解题思路:注意事项:参考代码:n = input()a = 0b = 0c = 0d = 0for i in n: if (i>='a' and i<='z') …… 题解列表 2023年02月10日 0 点赞 0 评论 385 浏览 评分:0.0
1128: C语言训练-排序问题<1> 三行解决 摘要:解题思路:又是水的一题注意事项:不要直接输出列表,用for循环参考代码:a=list(map(int,input().split()))for i in range(len(a)): print…… 题解列表 2023年02月10日 0 点赞 0 评论 493 浏览 评分:0.0
2772: 苹果和虫子(Python) 摘要:解题思路:注意事项:参考代码:from decimal import * Pi=3.14159 tmp = input() n,x,y = tmp.split() n = int(n) x …… 题解列表 2023年02月10日 0 点赞 0 评论 579 浏览 评分:2.0
1866: 三位数反转(Python) 摘要:解题思路:注意事项:参考代码:while True: try: n = input() m = n[::-1]   题解列表 2023年02月10日 0 点赞 2 评论 812 浏览 评分:7.3
刷题统计Pthon 摘要:解题思路:注意事项:参考代码:a,b,n=map(int,input().split())week=5*a+2*bdays=(n//week)*7n%=weekif n<=a*5: day=0 …… 题解列表 2023年02月09日 0 点赞 0 评论 378 浏览 评分:0.0
计算球的体积(Python) 摘要:解题思路:注意事项:参考代码:import math pi = math.pi while True: try: r = float(input()) …… 题解列表 2023年02月09日 0 点赞 1 评论 1160 浏览 评分:7.5
题解 2811: 救援 摘要:解题思路:注意事项:参考代码:import math # 调用数学模块 t = 0 n = int(input()) #屋顶数 for i in range(n): a = …… 题解列表 2023年02月09日 0 点赞 0 评论 480 浏览 评分:6.0
Python成绩排名 摘要:解题思路:注意事项:list.sort(key=lambda x:(x[0],-x[1])) # 先按第一个返回值排序,排序完成之后, 如果第一个返回值相等,然后再按照第二个返回值排序参考代码:n=i…… 题解列表 2023年02月09日 0 点赞 0 评论 332 浏览 评分:0.0
Python解决登陆验证问题 摘要:解题思路:注意事项:运用字典来解决参考代码:dict={'dotcpp':'123456'}m=input()n=input()if m in dict and dic…… 题解列表 2023年02月09日 0 点赞 0 评论 336 浏览 评分:0.0
2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:l = [] n = int(input()) a,b = map(int,input().split()) x = b / a for i in range(0…… 题解列表 2023年02月08日 0 点赞 0 评论 510 浏览 评分:6.7