#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+Cgp2b2lkIHN3YXAoaW50ICp4LCBpbnQgKnkpIHsKICAgIGludCB0ZW1wID0gKng7CiAgICAqeCA9ICp5OwogICAgKnkgPSB0ZW1wOwp9CgppbnQgbWFpbigpewppbnQgZGF0YTFbNV0gPSB7MSwgMiwgMywgNCwgNX07CiAgICBpbnQgZGF0YTJbNV0gPSB7NiwgNywgOCwgOSwgMTB9OwoKICAgIGZvcihpbnQgaSA9IDA7IGkgPCA1OyBpKyspewogICAgICAgIHN3YXAoJmRhdGExW2ldLCAmZGF0YTJbaV0pOwogICAgfQogICAgcHJpbnRmKCLlhaXjgozmm7/jgYjlvozjga5kYXRhMTogIik7CiAgICBmb3IoaW50IGkgPSAwOyBpIDwgNTsgaSsrKXsKICAgICAgICBwcmludGYoIiVkICIsIGRhdGExW2ldKTsKICAgIH0KICAgIHByaW50ZigiXG4iKTsKCiAgICBwcmludGYoIuWFpeOCjOabv+OBiOW+jOOBrmRhdGEyOiAiKTsKICAgIGZvcihpbnQgaSA9IDA7IGkgPCA1OyBpKyspewogICAgICAgIHByaW50ZigiJWQgIiwgZGF0YTJbaV0pOwogICAgfQogICAgcHJpbnRmKCJcbiIpOwoKICAgIHJldHVybiAwOwp9Cg==