#K14811. Free Delivery Customers

    ID: 24218 Type: Default 1000ms 256MiB

Free Delivery Customers

Free Delivery Customers

In this problem, you are given two integers ( n ) and ( k ) representing the total number of customers and the step interval respectively. A customer receives free delivery if their customer ID is a multiple of ( k ). Your task is to generate a list of all customer IDs (in increasing order) that will receive free delivery.

For example, if ( n = 10 ) and ( k = 3 ), then the customers with IDs 3, 6, and 9 receive free delivery.

The problem is straightforward and helps you practice basic iteration and modulo operations.

inputFormat

The input is read from standard input (stdin) and consists of two integers separated by space or newline. The first integer ( n ) is the total number of customers and the second integer ( k ) is the interval for free delivery.

outputFormat

Output to standard output (stdout) the list of customer IDs who receive free delivery. The numbers should be printed in increasing order separated by a space. If no customer receives free delivery, output an empty line.## sample

10 3
3 6 9