H
hotjuly
hello everyone, first time here! problem coming soon...
int a[n]={...};
// a>= 0 && a<n && n<10
// a != a[j] && i != j
int b[n]={...};
// the value of b is the number of a[0] to a[i-1] < a
// so the b[0] must be 0
a[5]={0,1,2,3,4,} then b[5]={0,1,2,3,4,}
a[5]={1,4,2,0,3,} then b[5]={0,1,1,0,3,}
a[5]={4,3,2,1,0,} then b[5]={0,0,0,0,0,}
now we have known b[n],decode b[n] to a[n] ???
email: (e-mail address removed)
int a[n]={...};
// a>= 0 && a<n && n<10
// a != a[j] && i != j
int b[n]={...};
// the value of b is the number of a[0] to a[i-1] < a
// so the b[0] must be 0
a[5]={0,1,2,3,4,} then b[5]={0,1,2,3,4,}
a[5]={1,4,2,0,3,} then b[5]={0,1,1,0,3,}
a[5]={4,3,2,1,0,} then b[5]={0,0,0,0,0,}
now we have known b[n],decode b[n] to a[n] ???
email: (e-mail address removed)