#28850: python 一行解


jeter.nice@gmail.com (唯一)

School : 德明財經科技大學
ID : 112857
IP address : [49.159.84.117]
Last Login :
2022-08-18 21:59:27
b971. 等差數列 -- 板橋高中教學題 | From: [59.120.39.82] | Post Date : 2022-01-08 00:04

(lambda n:[print(i,end=' ') for i in range(n[0],n[1]-1,n[2])] if n[0]>n[1] else [print(i,end=' ') for i in range(n[0],n[1]+1,n[2])])([int(i) for i in input().split()])
 
ZeroJudge Forum