题解列表
题解 1161: 回文数(二)(python)
摘要:def n_to_ten(n,m):
j = 0
sum =0
for i in str(m)[::-1]:
sum += int(i)*n**j
……
str = replace(old, new)替换所有空格
摘要:就这????
就这???
while 1:
st = input()
NewSt = st.replace(' ', '')
print……
divmod(x, y)函数,集商和余数于一体
摘要: # a, b = divmod(x, y) divmod()函数会返回两个值,第一个为 x // y, 第二个返回值为 x % y
MoneyVariety_lis =……
[编程入门]自由下落的距离计算
摘要:解题思路:找规律 借助画图工具来进行找规律100 50 50 25 25 12 .5 12.5.........注意事项:注意要保留两位小数参考代码:m,n=map(int,input().split……
[编程入门]三个字符串的排序(python代码)
摘要:解题思路:注意事项:参考代码:a=input();b=input();c=input()x=[a,b,c]x.sort()for i in x: print(i)……
[编程入门]三个字符串的排序(python代码)
摘要:解题思路:注意事项:参考代码:def gys(x,y): if x>y: z=y else: z=x while z!=0: if x%z=……
编写题解 1160: 出圈
摘要:while True:
try:
n,m =map(int,input().split())
lis = list(range(1,n+1))
……