区间内本质不同的数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
给定个数,随机一对,求区间不同的数的期望是多少?若 则先交换,
输入格式
第一行一个整数 。 接下来n个数
输出格式
一个浮点数,答案(本题开放spj,与标准答案误差在即为正确)
2
1 2
1.50000000000
2
2 2
1.0000000000
数据规模与约定
对于 的数据,。