题目描述 圆周上有 2n 个点,把它们两两配对连成 n 条弦。这些弦最多能产生多少个交点(端点不算)? 输入格式 一行一个整数 n。 输出格式 一行一个整数,模 109+7。 样例 输入 3 输出 3 数据范围 1≤n≤106