← 返回 doordash 的题目列表Er Ling Si Jiu
类型:online_judge
Write a Python program to generate a list of integers based on specific logic and adjust it according to given parameters. Design custom test cases to validate the implementation. Assume the input is an integer n, and the output is a list of integers, where the logic is determined by you.
Input
An integer n, representing the desired length of the list.
Output
A list containing integers generated based on n.
Example
Input: 4
Output: [1, 2, 3, 4]
Constraints
1 <= n <= 1000
Hints
Design your custom logic to generate the list based on the value of n
Example
Input
4