CT187

Shared Bus Arrival Rhythm

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Two positive bus intervals repeat; find their first shared minute. Task: Compute the least common multiple of a and b. Input format: Two positive integers a and b. Output format: One integer: the lcm. Constraints: 1 <= a,b <= 10^9 Edge rules: Apply the stated zero, tie, boundary, and ordering conventions exactly.

Example 1:

Input: 1 1
Output: 1

Example 2:

Input: 2 3
Output: 6

Example 3:

Input: 4 6
Output: 12

Constraints:

1 <= a,b <= 10^9

Tags:

lcm number-properties
Loading...
Test Cases:No test cases
No test cases available.
Shared Bus Arrival Rhythm - EASY Coding Problem | CodeTikki