题解 1018: [编程入门]有规律的数列求和

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

几行代码搞定,简单易懂

摘要:解题思路:注意事项:参考代码:n = int(input())a,s,d= 0,0,0m,l = 2,1for i in range(n):    a,s = m,l    d += a/s    m……

无聊的星期六

摘要:解题思路:注意事项:参考代码:s=int(input()) '''print('%.2f'%sum(i+ for i in range(s)))'&#……

1018递归解法(Python)

摘要:注意事项:只关注上、下两数的关系即可参考代码:N = int(input())output = 0times = 0def count_sum(up_data, down_data) :    glo……