Set 104Question 66

Rina's Common Factor Finder

HardWritten in CMust finish in 3 seconds

Rina needs the GCD of two large batch sizes used at a weather station to schedule shared processing runs.

What your program reads

Two integers A B.

What your program prints

GCD(A,B).

Limits

1 ≤ A,B ≤ 10^18

Example input

48 18

Expected output

6
main.c

Your work is saved in this browser as you type.

Loading editor…
Input for Run

Run tries your code on the input above and shows what it prints. Submit checks your output against every test, including hidden ones.

Shortcut: Ctrl + Enter sends it to the judge.

Rina's Common Factor Finder · DIU ContestHub