题解列表

筛选

2803: 整数的个数

摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))print(a.count(1))print(a.count(5))print……

Python统计数字字符个数

摘要:解题思路:注意事项:参考代码:n=input()count=0for i in n:    if i>=&#39;0&#39; and i<=&#39;9&#39;:        count+=1p……

Python解统计字符

摘要:解题思路:注意事项:参考代码:n = input()a = 0b = 0c = 0d = 0for i in n:    if (i>=&#39;a&#39; and i<=&#39;z&#39;) ……

2772: 苹果和虫子(Python)

摘要:解题思路:注意事项:参考代码:from decimal import * Pi=3.14159 tmp = input() n,x,y = tmp.split() n = int(n) x ……

1866: 三位数反转(Python)

摘要:解题思路:注意事项:参考代码:while True:     try:         n = input()         m = n[::-1]         

刷题统计Pthon

摘要:解题思路:注意事项:参考代码:a,b,n=map(int,input().split())week=5*a+2*bdays=(n//week)*7n%=weekif n<=a*5:    day=0 ……