题解列表
[竞赛入门]简单的a+b-题解(Python代码)
摘要:```python
#这种方式输入了2个int型的数字,split()代表以空格隔开。
while True:
a,b = map(int,input().split())
p……
[编程入门]猴子吃桃的问题-题解(Python代码)
摘要:解题思路:注意事项:参考代码:"""1, 4, 10, 22, 46 ... (num + 1) * 2"""N = int(input(""))s = 1 # 最后一天 剩余1个 apple……
[编程入门]自由下落的距离计算-题解(Python代码)
摘要:解题思路:注意事项:参考代码:M,N = map(int, input().strip().split())S = 0for i in range(N): M = M / 2 S ……
[编程入门]自定义函数之数字分离-题解(Python代码)
摘要:解题思路:注意事项:参考代码:n = input()for i in n: print(i,end=" ")……
[编程入门]完数的判断-题解(Python代码)
摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(1,n+1): s = 0; str_x = "" if i % 10 == 6 or i % ……
[编程入门]水仙花数判断-题解(Python代码)
摘要:解题思路:注意事项:参考代码:s_sum = 0for i in range(100,1000): for ch in str(i): s_sum += (eval(ch))**3……
[编程入门]求和训练-题解(Python代码)
摘要:解题思路: 使用 for循环 和while循环两种方法注意事项:参考代码:for 循环:a,b,c = map(int,input().strip().split())sum1=Sn=fn=0for ……
[编程入门]自定义函数之字符串反转-题解(Python代码)
摘要:解题思路:注意事项:参考代码:def fanchuan(n): return str(n)[::-1]a = input()c = fanchuan(a)print(c.strip())……
[编程入门]自由下落的距离计算-题解(Python代码)
摘要:```python
m,n = map(int,input().split())
a=m
gsum = 0
for i in range(1,n+1):
m = m/2
g……