Type: Default 1000ms 256MiB

化成最简

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目背景

小明再次被老师叫起来回答问题。

题目描述

输出一个分数,输出与这个分数相等的最简分数。

输入

两个整数a,ba,b(详情见样例)。

输出

这个分数化成的最简分数。

样例1

12 / 24
1 / 2

样例2

12 / 3
4 / 1

数据范围

1<=a,b<=1031 <= a,b <= 10 ^ 3

小明

Not Attended
Status
Done
Rule
OI
Problem
13
Start at
2024-6-16 7:00
End at
2025-1-10 15:00
Duration
5000 hour(s)
Host
Partic.
5