Molly loves subtraction. She also loves non-negative numbers. For her birthday, Molly received an array
Constraints
For all subtasks:
Subtask 1 [40%]
Subtask 2 [60%]
Input Specification
Line
Line
Output Specification
The minimum value of
Sample Input
Copy
5
21 -10 7 3 18
Sample Output
Copy
3
Comments
what should i do if i keep getting TLE in Batch #3, using JAVA..... Thanks
Use BufferedReader
Thanks :-)
Hint for Python Coders getting TLE: Use
PyPy
instead.