#include <stdio.h>
void F(int* p, int n) {
int i;
for (i = 0; i < n - 1; i = i + 1) {
int tmp = *(p + i + 1);
*(p + i + 1) = *(p + i);
*(p + i) = tmp;
}
}
int main(void) {
// your code goes here
int a[5] = { 7,3,6,9,5 };
F(a, 5);
for(int i=0;i<=4;i++){
}
//system("pause");
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIEYoaW50KiBwLCBpbnQgbikgewppbnQgaTsKZm9yIChpID0gMDsgaSA8IG4gLSAxOyBpID0gaSArIDEpIHsKaW50IHRtcCA9ICoocCArIGkgKyAxKTsKKihwICsgaSArIDEpID0gKihwICsgaSk7CioocCArIGkpID0gdG1wOwp9Cn0KCmludCBtYWluKHZvaWQpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCWludCBhWzVdID0geyA3LDMsNiw5LDUgfTsKRihhLCA1KTsKZm9yKGludCBpPTA7aTw9NDtpKyspewpwcmludGYoIiVkXG4iLCBhW2ldKTsKfQovL3N5c3RlbSgicGF1c2UiKTsKCQoJcmV0dXJuIDA7Cn0K