h4ex2: Recursion, basic arithmetic

h4ex2: Recursion, basic arithmetic

You cannot submit for this problem because the homework's deadline is due.

Description

Given two integer, write a recursive algorithm to calculate their GCD.

Format

Files

You should submit a tar file containing a c source file ex2.c

Input

a space separated pair of numbers \(a\) \(b\) on one line

Output

a single number on one line

Sample 1

Input

120 72

Output

24

Limitation

1s, 32MiB for each test case.

Assignment 4

Not Claimed
Status
Finished
Problems
3
Open Since
2018-06-14 14:00
DDL
2018-06-21 14:00
Extension
240.0 hour(s)