Reducing Fractions
222C1800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 2100 5 250 10
Output
2 32 11 1 1
Sample 2of 2
Input
4 32 5 10 20100 1 3
Output
1 1203
58%
222C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3 2100 5 250 10
2 32 11 1 1
4 32 5 10 20100 1 3
1 1203