#include <stdio.h>
#include <stdlib.h>
void printA(int a[], int n){
int i;
for(i=0;i<n;i++){
}
}
void swap(int* a, int* b){
int tmp;
tmp = *a;
*a = *b;
*b = tmp;
}
#define MAX 1000000
void BucketSort(int a[], int n){
int i,t;
int b[MAX];
for(i=0;i<MAX;i++){
b[i]=0;
}
for(i=0;i<n;i++){
b[a[i]]++;
}
t=0;
for(i=0;i<MAX;i++){
if(b[i]==1){
a[t]=i;
t++;
}
}
}
int main(void){
int n,i;
int *v;
v
= (int*)malloc(sizeof(int)*n
); if(v==NULL){
return -1;
}
for(i=0;i<n;i++){
}
BucketSort(v,n);
printA(v,n);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KIAp2b2lkIHByaW50QShpbnQgYVtdLCBpbnQgbil7CiAgICBpbnQgaTsKICAgIGZvcihpPTA7aTxuO2krKyl7CiAgICAgICAgcHJpbnRmKCIlZCAiLGFbaV0pOwogICAgfQogICAgcHJpbnRmKCJcbiIpOwp9CiAKdm9pZCBzd2FwKGludCogYSwgaW50KiBiKXsKICAgIGludCAgdG1wOwogICAgdG1wID0gKmE7CiAgICAqYSA9ICpiOwogICAgKmIgPSB0bXA7Cn0KIAojZGVmaW5lIE1BWCAxMDAwMDAwCnZvaWQgQnVja2V0U29ydChpbnQgYVtdLCBpbnQgbil7CiAgICBpbnQgaSx0OwogICAgaW50IGJbTUFYXTsKICAgIGZvcihpPTA7aTxNQVg7aSsrKXsKICAgIAliW2ldPTA7CiAgICB9CiAgICBmb3IoaT0wO2k8bjtpKyspewogICAgCWJbYVtpXV0rKzsKICAgIH0KICAgIHQ9MDsKICAgIGZvcihpPTA7aTxNQVg7aSsrKXsKICAgIAlpZihiW2ldPT0xKXsKICAgIAkJYVt0XT1pOwogICAgCQl0Kys7CiAgICAJfQogICAgfQp9CiAKaW50IG1haW4odm9pZCl7CiAgICBpbnQgbixpOwogICAgaW50ICp2OwogICAgc2NhbmYoIiVkIiwmbik7CiAgICB2ID0gKGludCopbWFsbG9jKHNpemVvZihpbnQpKm4pOwogICAgaWYodj09TlVMTCl7CiAgICAgICAgcHJpbnRmKCJFUlJPUlxuIik7CiAgICAgICAgcmV0dXJuIC0xOwogICAgfQogICAgZm9yKGk9MDtpPG47aSsrKXsKICAgICAgICBzY2FuZigiJWQiLCZ2W2ldKTsKICAgIH0KICAgIEJ1Y2tldFNvcnQodixuKTsKICAgIHByaW50QSh2LG4pOwogICAgZnJlZSh2KTsKICAgIHJldHVybiAwOwp9