#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> void sort(long int R[],int R_size) { for (int i = 1; i < R_size; i++) { int key = R[i]; //获取要比较的key值 int j = i - 1; //已排序数组中末尾元素下标 while (j >= 0 && R[j] > key){ //从已排序数组中末尾元素开始往前比较 R...