Lệnh range() #3

View as PDF



Problem types
Allowed languages
Pypy, Pypy 3, Python
Points: 100 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Viết chương trình nhập vào hai số nguyên \(m,n,k\), hãy in ra dãy số từ \([m,m+k,...,x < n]\).

Input

  • Basố nguyên \(m, n,k\) \((1\le m\le n\le 100; -100 \le k \le 100)\).

Output

  • In ra dãy số từ \([m,m+k,...,x < n]\) theo định dạng như ví dụ Output

Example

Test 1

Input
4 20 2
Output
[4, 6, 8, 10, 12, 14, 16, 18] 

Comments

There are no comments at the moment.