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