Implement ReLU activation
BeginnerProblem Description
Implement ReLU: ReLU(x) = max(0, x). Apply it to a list of numbers.
Input: One line of space-separated numbers.
Output: One line of space-separated numbers after applying ReLU (integers where applicable).
Example:
- Input:
-1 0 2 3 - Output:
0 0 2 3
Input & Output Format
INPUT:
Two lines. First line: space-separated numbers for vector a.
Second line: space-separated numbers for vector b.
Second line: space-separated numbers for vector b.
OUTPUT:
A single number (the dot product).
Example
Input:
1 2 3
4 5 6
4 5 6
Output:
32
Explanation: 1×4 + 2×5 + 3×6 = 4 + 10 + 18 = 32
Loading editor...
Output
Run or submit to see output.