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