题解列表

筛选

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 ……