#include <stdio.h>
void swap(int *c,int *d);
void sort(int *a,int *b);
int main(void) {
int x,y;
x = 2;
y = 10;
sort(&x,&y);
return 0;
}
void sort(int *a,int *b){
if(*a<*b){
swap(a,b);
}
}
void swap(int *c,int *d){
int temp;
temp = *c;
*c = *d;
*d = temp;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHN3YXAoaW50ICpjLGludCAqZCk7CnZvaWQgc29ydChpbnQgKmEsaW50ICpiKTsKCmludCBtYWluKHZvaWQpIHsKCWludCB4LHk7Cgl4ID0gMjsKCXkgPSAxMDsKCQoJc29ydCgmeCwmeSk7CQoJCglwcmludGYoIiVkLCVkIix4LHkpOwoJCglyZXR1cm4gMDsKfQoKdm9pZCBzb3J0KGludCAqYSxpbnQgKmIpewoJaWYoKmE8KmIpewoJCXN3YXAoYSxiKTsKCX0KfQoKdm9pZCBzd2FwKGludCAqYyxpbnQgKmQpewoJaW50IHRlbXA7CgkKCXRlbXAgPSAqYzsKCSpjID0gKmQ7CgkqZCA9IHRlbXA7Cn0=