How do I optimize this algorithm so it doesn't exceed the given time limit?

后端 未结 0 2013
清歌不尽
清歌不尽 2020-12-14 15:34

First of all, I\'m trying to solve the following problem using Python:

An arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb
 where n=0,         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题