#include int main(void) { int a[1001]; int i,j,t,n; scanf("%d",&n); for(i=0;i-1 && a[j]>t;j--) { a[j+1]=a[j]; a[j+1]=t; for(j=0;j