题解列表
python方法解决
摘要:解题思路:注意事项:参考代码:import mathl = input().split()s = 0if l[1] == 'y': s = 5a = int(l[0])if a ……
6行:万花丛中过,片叶不沾身
摘要:解题思路:注意事项:参考代码:word=input()result=""for i in range(len(word)-1): result += chr(ord(word[i])+ord(w……
12行:万花丛中过,片叶不沾身
摘要:解题思路:注意事项:参考代码:n=int(input())def rule(p1,p2): if p1==p2: return "Tie" elif (p1=="Scisso……
优质题解,回归真神的初始途径
摘要:解题思路:利用字典,统计每个字母出现的次数注意事项:参考代码:word=input()dic={}for le in word: if le in dic: dic[le]+=1 ……
优质题解,回归真神的初始途径
摘要:解题思路:注意事项:参考代码:chuan=input()j=0for fu in chuan: if fu.isdigit(): j+=1print(j)……
优质题解,回归真神的初始途径
摘要:解题思路:注意事项:参考代码:n=int(input())li=list(map(int,input().split()))shul=[0]*4for l in li: if 0<=l<=18:……
优质题解,回归真神的初始途径
摘要:解题思路:注意事项:参考代码:n=int(input())l=list(map(int,input().split()))l.reverse()print(" ".join(map(str,l)))……
优质题解,回归真神的初始途径
摘要:解题思路:利用列表[]的有序性和list函数的有序性,可以一一对应注意事项:参考代码:# 图书价格列表prices = [ 28.9, # 计算概论 32.7, # 数据结构与算法 ……