logo AlgoBeat OnlineJudge
登录 注册

#206181. [NWRRC 2017] Equal Numbers

内存限制:512 MiB 时间限制:3000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

You are given a list of integers . . . , You can perform the following operation: choose some and multiply it by any positive integer.

Your task is to compute the minimum number of different integers that could be on the list after operations for all .

输入格式

The first line of the input contains single integer The second line of the input contains integers

输出格式

Output a single line that contains integers. The i-th integer should be the minimum possible number of different integers in the list after operations.

样例

样例输入 1

6
3 4 1 2 1 2

样例输出 1

4 4 3 3 2 2 1

数据范围与提示

Time limit: 3 s, Memory limit: 512 MB.