CF459B Pashmak and Flowers

题目描述

Pashmak 想要给 Parmida一对花。有n朵花在花园里,每朵花都有一个魅力值bi,Pashmak想要两朵魅力值相差最大的花,问有多少种方案?

输入格式

首先输入n (2

输出格式

输出最大差异和方案数,中间用空格隔开

说明/提示

In the third sample the maximum beauty difference is $ 2 $ and there are $ 4 $ ways to do this: 1. choosing the first and the second flowers; 2. choosing the first and the fifth flowers; 3. choosing the fourth and the second flowers; 4. choosing the fourth and the fifth flowers.