Remove Duplicates of Array
题号:NC214533
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

You are given a non-empty integer array. Your task is to remove all the duplicates of the array such that each element appears only once and return the new length.

输入描述:

Only 1 test case for each Input. Every test case in a non-empty integer array separated by " ".

输出描述:

Output the length of the new array.
示例1

输入

复制
1 1 3 4 1

输出

复制
3

说明

The new array is [1,3,4] of which length is 3.