#include <stdio.h>
void swap(int *x, int *y) {
int w;
w = *x;
*x = *y;
*y = w;
}
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++) {
}
for (int i = 0; i < 5; i++) {
}
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+Cgp2b2lkIHN3YXAoaW50ICp4LCBpbnQgKnkpIHsKICAgIGludCB3OwogICAgIHcgPSAqeDsKICAgICp4ID0gKnk7CiAgICAqeSA9IHc7Cn0KCmludCBtYWluKCkgewogICAgaW50IGRhdGExWzVdID0gezEsIDIsIDMsIDQsIDV9OwogICAgaW50IGRhdGEyWzVdID0gezYsIDcsIDgsIDksIDEwfTsKCiAgICBwcmludGYoIuWFpeOCjOabv+OBiOWJjTpcbiIpOwogICAgcHJpbnRmKCJkYXRhMTogIik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IDU7IGkrKykgewogICAgICAgIHByaW50ZigiJWQgIiwgZGF0YTFbaV0pOwogICAgfQogICAgcHJpbnRmKCJkYXRhMjogIik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IDU7IGkrKykgewogICAgICAgIHByaW50ZigiJWQgIiwgZGF0YTJbaV0pOwogICAgfQogICAgcHJpbnRmKCJcbiIpOwoKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKSB7CiAgICAgICAgc3dhcCgmZGF0YTFbaV0sICZkYXRhMltpXSk7CiAgICB9CgogICAgcHJpbnRmKCLlhaXjgozmm7/jgYjlvow6XG4iKTsKICAgIHByaW50ZigiZGF0YTE6ICIpOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCA1OyBpKyspIHsKICAgICAgICBwcmludGYoIiVkICIsIGRhdGExW2ldKTsKICAgIH0KICAgIHByaW50ZigiZGF0YTI6ICIpOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCA1OyBpKyspIHsKICAgICAgICBwcmludGYoIiVkICIsIGRhdGEyW2ldKTsKICAgIH0KICAgIHByaW50ZigiXG4iKTsKCiAgICByZXR1cm4gMDsKfQo=