Accepted code for some OnlineJudges; mostly SJTU OJ; update off and on
MIT License
OIACMOJOJ
issue
ACMOnline JudgeOJOJ
,
gcc3.4.81617OJgcc4.8187.1REWACE(AC )
(OJ)Mental Disorder
issue,pr~
516030910552 yyong119
~
memcpy(b, a, sizeof(a));
sort(b, b + n);
int cnt = unique(b, b + n) - b;
for (int i = 0; i < n; ++i)
a[i] = lower_bound(b, b + cnt, a[i]) - b; // a[i]