using System; using System.Collections.Generic; using System.Text; namespace 移动排列 { class Program { static void Main(string[] args) { long min = 10000; long sum = 0; long N; long[] num = new long[100000]; N = long.Parse(Console.ReadLine()); string[] num1 = Console.ReadLine().Split(' '); for (int i = 0; i for (int k = 1; k <= N; k++) {sum = 0;for (int m = 1; m <= N; m++){ sum += Math.Abs(num[m] - m);}num[0] = num[1];for (int j = 1; j } Console.Write(min); } } }