oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

multiples Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

multiples.html

Spongebob likes multiples of 3.
Patrick likes multiples of 5.
Ranald likes multiples of 17.
Desmond likes multiples of 10.
Jeshua likes multiples of 13.

To satisfy everyone, you are to create a program that takes in a number, n, and then prints out the first m multiples of it.

Input

Input will be 2 numbers, n followed by m, space separated.
-100000 <= n<= 100000
0 <=m<=10000

Output

On the mth line, print the mth multiple of n.

Sample Input

3 9

Sample Output

3
6
9
12
15
18
21
24
27

Tags

Syntax

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
110051s32MBAverage
2011s32MBAverage

Judge Compile Command

g++-8 ans.cpp -o multiples -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.