#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};
int size = sizeof(data1) / sizeof(data1[0]);
for (int i = 0; i < size; i++) {
}
for (int i = 0; i < size; i++) {
}
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+Cgp2b2lkIHN3YXAoaW50ICp4LCBpbnQgKnkpIHsKICAgIGludCB0ZW1wID0gKng7CiAgICAqeCA9ICp5OwogICAgKnkgPSB0ZW1wOwp9CgppbnQgbWFpbigpIHsKICAgIGludCBkYXRhMVs1XSA9IHsxLCAyLCAzLCA0LCA1fTsKICAgIGludCBkYXRhMls1XSA9IHs2LCA3LCA4LCA5LCAxMH07CiAgICBpbnQgc2l6ZSA9IHNpemVvZihkYXRhMSkgLyBzaXplb2YoZGF0YTFbMF0pOwoKICAgIHByaW50ZigiZGF0YTE6ICIpOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBzaXplOyBpKyspIHsKICAgICAgICBwcmludGYoIiVkICIsIGRhdGExW2ldKTsKICAgIH0KICAgIHByaW50ZigiXG5kYXRhMjogIik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IHNpemU7IGkrKykgewogICAgICAgIHByaW50ZigiJWQgIiwgZGF0YTJbaV0pOwogICAgfQogICAgcHJpbnRmKCJcbiIpOwoKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgc2l6ZTsgaSsrKSB7CiAgICAgICAgc3dhcCgmZGF0YTFbaV0sICZkYXRhMltpXSk7CiAgICB9CgogICAgcHJpbnRmKCJkYXRhMTogIik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IHNpemU7IGkrKykgewogICAgICAgIHByaW50ZigiJWQgIiwgZGF0YTFbaV0pOwogICAgfQogICAgcHJpbnRmKCJcbmRhdGEyOiAiKTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgc2l6ZTsgaSsrKSB7CiAgICAgICAgcHJpbnRmKCIlZCAiLCBkYXRhMltpXSk7CiAgICB9CiAgICBwcmludGYoIlxuIik7CiAgICByZXR1cm4gMDsKCn0K