#include <stdio.h>
#include <stdlib.h>
int main(void) {
int count
= rand() % 1024 + 2; int arr[count];
arr[count-1] = 3;
for(int i = 0; i < count; ++i)
{
arr[i] = i * 3;
}
printf("%d %d %d", count
- 1, arr
[0], arr
[count
-1]); return 0;
}
CSNpbmNsdWRlIDxzdGRpby5oPgoJI2luY2x1ZGUgPHN0ZGxpYi5oPgoKCWludCBtYWluKHZvaWQpIHsKCQlpbnQgY291bnQgPSByYW5kKCkgJSAxMDI0ICsgMjsKCQlpbnQgYXJyW2NvdW50XTsKCQlhcnJbY291bnQtMV0gPSAzOwoJCWZvcihpbnQgaSA9IDA7IGkgPCBjb3VudDsgKytpKQoJCXsKCQkJYXJyW2ldID0gaSAqIDM7CgkJfQoJCXByaW50ZigiJWQgJWQgJWQiLCBjb3VudCAtIDEsIGFyclswXSwgYXJyW2NvdW50LTFdKTsKCQlyZXR1cm4gMDsKCX0K