K. Phần tử khác nhau


Submit solution

Points: 50
Time limit: 1.0s
Memory limit: 256M

Problem type

Cho dãy \(a_1, a_2, a_3,...,a_n\). Hãy lập trình đếm số phần tử khác nhau và đưa ra các phần tử đó.

input

8
1 2 6 4 2 3 1 3

output

5
1 2 3 4 6

input

10
10000 20000 30000 44444 20000 10000 44444 44444 56789 45342

output

6
10000 20000 30000 44444 45342 56789


Comments

There are no comments at the moment.