#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 temp=*x;
*x=*y;
*y=temp;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgc3dhcChpbnQqeCxpbnQqeSk7CmludCBtYWluKHZvaWQpIHsKaW50IGRhdGExW109ezEsMiwzLDQsNX07CmludCBkYXRhMltdPXs2LDcsOCw5LDEwfTsKCmZvcihpbnQgaT0wO2k8NTtpKyspewpzd2FwKCZkYXRhMVtpXSwmZGF0YTJbaV0pOwp9CmZvcihpbnQgaT0wO2k8NTtpKyspewoJcHJpbnRmKCIlZFxuIixkYXRhMVtpXSk7Cn0KZm9yKGludCBpPTA7aTw1O2krKyl7CglwcmludGYoIiVkXG4iLGRhdGEyW2ldKTsKfQoKCXJldHVybiAwOwp9CnZvaWQgc3dhcChpbnQqeCxpbnQqeSl7CglpbnQgdGVtcD0qeDsKCSAgICAqeD0qeTsKCSAgICAqeT10ZW1wOwp9