#include <stdio.h>
void swap(int *x,int *y);
int main(void) {
int a[]={1,2,3,4,5};
int b[]={6,7,8,9,10};
for(int i=0;i<5;i++){
swap(&a[i],&b[i]);
}
for(int i=0;i<5;i++){
}
return 0;
}
void swap(int *x,int *y){
int z=*x;
*x=*y;
*y=z;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHN3YXAoaW50ICp4LGludCAqeSk7CgppbnQgbWFpbih2b2lkKSB7CgkKCWludCBhW109ezEsMiwzLDQsNX07CglpbnQgYltdPXs2LDcsOCw5LDEwfTsKCQoJZm9yKGludCBpPTA7aTw1O2krKyl7CgkJc3dhcCgmYVtpXSwmYltpXSk7Cgl9Cglmb3IoaW50IGk9MDtpPDU7aSsrKXsKCQlwcmludGYoIiVkICVkXG4iLGFbaV0sYltpXSk7Cgl9CglyZXR1cm4gMDsKfQp2b2lkIHN3YXAoaW50ICp4LGludCAqeSl7CglpbnQgej0qeDsKCSp4PSp5OwoJKnk9ejsKfQ==