输入 n 个整数,统计值相同且位置不同的有序对个数。
第一行输入 n。 第二行输入 n 个整数。
输出有序对个数。
4 1 2 1 2
4
1≤n≤100
使用您的 www.mathcoding.online 通用账户