#include <stdio.h>
void swap(int *x, int *y) {
int temp = *x;
*x = *y;
*y = temp;
}
int main(){
int data1[5] = {1, 2, 3, 4, 5};
int data2[5] = {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;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHN3YXAoaW50ICp4LCBpbnQgKnkpIHsKICAgIGludCB0ZW1wID0gKng7CiAgICAqeCA9ICp5OwogICAgKnkgPSB0ZW1wOwp9CgppbnQgbWFpbigpewoJaW50IGRhdGExWzVdID0gezEsIDIsIDMsIDQsIDV9OwogICAgaW50IGRhdGEyWzVdID0gezYsIDcsIDgsIDksIDEwfTsKCiAgICBmb3IoaW50IGkgPSAwOyBpIDwgNTsgaSsrKXsKICAgICAgICBzd2FwKCZkYXRhMVtpXSwgJmRhdGEyW2ldKTsKICAgIH0KICAgIHByaW50Zigi5YWl44KM5pu/44GI5b6M44GuZGF0YTE6ICIpOwogICAgZm9yKGludCBpID0gMDsgaSA8IDU7IGkrKyl7CiAgICAgICAgcHJpbnRmKCIlZCAiLCBkYXRhMVtpXSk7CiAgICB9CiAgICBwcmludGYoIlxuIik7CgogICAgcHJpbnRmKCLlhaXjgozmm7/jgYjlvozjga5kYXRhMjogIik7CiAgICBmb3IoaW50IGkgPSAwOyBpIDwgNTsgaSsrKXsKICAgICAgICBwcmludGYoIiVkICIsIGRhdGEyW2ldKTsKICAgIH0KICAgIHByaW50ZigiXG4iKTsKCiAgICByZXR1cm4gMDsKfQo=