Java Fraction 1
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Implement a class Fraction that uses a wrapper class MyLong.
class MyLong { private long a; // private variable MyLong(long a) // Constructor public String toString() // Print the variable of type MyLong } class Fraction { MyLong numerator, denominator; // numerator and denominator Fraction() // Constructor Fraction (MyLong numerator, MyLong denominator) // Constructor public String toString() // Print the variable of type Fraction }
Input
Two integers a and b (-10^18
≤ a, b ≤ 10^18
).
Output
Print the fraction in the form a / b.
Examples
Input #1
Answer #1
Submissions 337
Acceptance rate 47%