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