#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};
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+Cgp2b2lkIHN3YXAoaW50KngsIGludCp5KQp7CglpbnQgdGVtcCA9ICp4OwoJKng9Knk7CgkqeT10ZW1wOwp9CgppbnQgbWFpbigpCnsKCmludCBkYXRhMVs1XT17MSwyLDMsNCw1fTsKaW50IGRhdGEyWzVdPXs2LDcsOCw5LDEwfTsKCmZvcihpbnQgaT0wOyBpPDU7IGkrKykKewogc3dhcCgmZGF0YTFbaV0sJmRhdGEyW2ldKTsKfQoKcHJpbnRmKCJkYXRhMT0iKTsKZm9yKGludCBpPTA7IGk8NTsgaSsrKQp7CglwcmludGYoIiVkIixkYXRhMVtpXSk7Cn0KCnByaW50ZigiXG4iKTsKCnByaW50ZigiZGF0YTI9Iik7CmZvcihpbnQgaT0wOyBpPDU7IGkrKykKewoJcHJpbnRmKCIlZCIsIGRhdGEyW2ldKTsKfQoKCXJldHVybiAwOwp9Cg==