#include <bits/stdc++.h>
using namespace std;
int main() {
int *arr = new int[15];
arr = NULL;
for (int i = 0; i < 5; i++)
arr[i] = 2 * i;
for (int i = 0; i < 5; i++)
cout << arr[i] << " ";
cout << endl;
delete[] arr;
for (int i = 0; i < 5; i++)
arr[i] = 3 * i + 1;
for (int i = 0; i < 5; i++)
cout << arr[i] << " ";
cout << endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkgewogIGludCAqYXJyID0gbmV3IGludFsxNV07CiAgYXJyID0gTlVMTDsKICBmb3IgKGludCBpID0gMDsgaSA8IDU7IGkrKykKICAgIGFycltpXSA9IDIgKiBpOwoKICBmb3IgKGludCBpID0gMDsgaSA8IDU7IGkrKykKICAgIGNvdXQgPDwgYXJyW2ldIDw8ICIgIjsKICBjb3V0IDw8IGVuZGw7CgogIGRlbGV0ZVtdIGFycjsKCiAgZm9yIChpbnQgaSA9IDA7IGkgPCA1OyBpKyspCiAgICBhcnJbaV0gPSAzICogaSArIDE7CgogIGZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKQogICAgY291dCA8PCBhcnJbaV0gPDwgIiAiOwogIGNvdXQgPDwgZW5kbDsKCiAgcmV0dXJuIDA7Cn0=