11748 - 231001_12/21_practice14-3
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
Description
-
A fraction can be written as a/b where a and b are integers and a, b ≠ 0.
-
Read the comments in p-14-3.cpp and fill all functions to finish this exercise.
Input
-
Input: See the sample I/O
-
Input format: See the sample I/O
Output
-
Output: See the sample I/O
-
Output format:
-
There is a space before and after each character (+,−,*,/,=), however, the sign “-” doesn’t include in this character.
-
Change a new line at the end of each line.
Tags