Absolute distinct count
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given a sorted array of integers. Find the number of distinct absolute values among the elements of the array.
Input
First line contains number of integers . Second line contains integer, sorted in increasing order. Array can contain duplicates values.
Output
Print the number of distinct absolute values.
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #3
Answer #3
Submissions 5K
Acceptance rate 18%