题解列表

筛选

平均值计算python

摘要:解题思路:注意事项:参考代码:n = list(map(int,input().split()))s = sum(n)/(len(n))count = 0for i in n:    if i>s: ……

结构体之时间设计

摘要:解题思路:注意事项:参考代码:y,m,d = map(int,input().split())m1 = [1,3,5,7,8,10,12]m2 = [4,6,9,11]s = 0for i in ra……

编写题解 2850: 输出亲朋字符串

摘要:解题思路:设计两个移动指针count1,count2注意事项:参考代码:str=input() ls=[] #初始化空列表 count1=0 #设计两个相邻指针并初始化 count2=1 wh……

编写题解 2849: 石头剪子布

摘要:解题思路:注意事项:参考代码:ls=["Rock", "Scissors", "Paper"] #选择 def judge(S1,S2):     if S1==S2: #平局         ……

最简的题解,等比公式求和

摘要:解题思路:要多利用数学公式注意事项:参考代码:b=int(input()) a=100*(1-0.5**b)*4-100      //路程是位移的两倍,减去一开始多算的100就行了 print(……

混个经验值

摘要:解题思路:............................注意事项:参考代码:num=eval(input()) a=0 for i in range(2,num):     if nu……

2种方法写题解

摘要:解题思路:注意事项:参考代码:a= input()k=0for i in a:    if 47<ord(i) and ord(i)<58:  #ASCII码判断是不是数字        k+=1pr……

1431蓝桥杯2014年第五届真题-分糖果题解

摘要:解题思路:运用列表里面最后一个数据的索引可以是n-1也可以是-1,来进行遍历注意事项:参考代码:n= int(input())   #一开始为了方便自己查看,输入里面有个‘人数’,然后一直错误list……