Java MyLong Add
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Implement a wrapper class MyLong.
class MyLong // Java {` private long a; // one private variable MyLong(long a) // Constructor public String toString() // Print a variable of type MyLong public MyLong Add(MyLong b) // Add MyLong value public MyLong Add(long b) // Add long value };
Input
Two integers a and b (-10^18
≤ a, b ≤ 10^18
).
Output
Print the value of a + b + 10.
Examples
Input #1
Answer #1
Submissions 451
Acceptance rate 62%