排序后统计相邻两数差至少为 2 的次数。
第一行输入一个整数 nnn。 第二行输入 nnn 个整数。
输出一个整数。
1≤n≤100,整数绝对值不超过106^66
3 1 3 5
2
使用您的 www.mathcoding.online 通用账户