用冒泡排序把数列排好,统计总交换次数。
第一行输入一个整数 nnn。 第二行输入 nnn 个整数。
输出交换次数。
1≤n≤100,整数绝对值不超过109^99
3 3 1 2
2
使用您的 www.mathcoding.online 通用账户