Division by zero 2 or...
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
As you know, dividing by zero is not permitted. But are there other numbers you cannot divide by? Your task is to determine this under stricter conditions.
Input
You are given two signed 32-bit integers, a and b, on a single line.
Output
Output the quotient obtained by dividing a by b, ensuring the result is a signed 32-bit integer. If it is not possible to represent the result of the division in this format, output ERROR.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 10%