#include <stdio.h>
void swap(int *x, int *y) {
int A = *x;
*x = *y;
*y = A;
}
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+Cgp2b2lkIHN3YXAoaW50ICp4LCBpbnQgKnkpIHsKICAgIGludCBBID0gKng7IAogICAgKnggPSAqeTsgICAgICAgCiAgICAqeSA9IEE7ICAgICAKfQoKaW50IG1haW4oKSB7CiAgICBpbnQgZGF0YTFbNV0gPSB7MSwgMiwgMywgNCwgNX07IAogICAgaW50IGRhdGEyWzVdID0gezYsIDcsIDgsIDksIDEwfTsgCgogICAgcHJpbnRmKCJkYXRhMTogIik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IDU7IGkrKykgewogICAgICAgIHByaW50ZigiJWQgIiwgZGF0YTFbaV0pOwogICAgfQogICAgcHJpbnRmKCJcbmRhdGEyOiAiKTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKSB7CiAgICAgICAgcHJpbnRmKCIlZCAiLCBkYXRhMltpXSk7CiAgICB9CiAgICBwcmludGYoIlxuIik7CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPCA1OyBpKyspIHsKICAgICAgICBzd2FwKCZkYXRhMVtpXSwgJmRhdGEyW2ldKTsKICAgIH0KCiAgICBwcmludGYoImRhdGExOiAiKTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKSB7CiAgICAgICAgcHJpbnRmKCIlZCAiLCBkYXRhMVtpXSk7CiAgICB9CiAgICBwcmludGYoIlxuZGF0YTI6ICIpOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCA1OyBpKyspIHsKICAgICAgICBwcmludGYoIiVkICIsIGRhdGEyW2ldKTsKICAgIH0KCiAgICByZXR1cm4gMDsKfQoK