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