#include <iostream>
using namespace std;
int *vernutMassiv(int a, int be, int ce)
{
return new int[3]{a, be, ce};
}
int main() {
int* massiv1 = vernutMassiv(1,2,3);
int* massiv2 = vernutMassiv(2,3,4);
int* massiv3 = vernutMassiv(3,4,5);
cout << massiv1[0];
cout << massiv2[0];
cout << massiv3[0];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50ICp2ZXJudXRNYXNzaXYoaW50IGEsIGludCBiZSwgaW50IGNlKQp7CiAgICByZXR1cm4gbmV3IGludFszXXthLCBiZSwgY2V9Owp9CgppbnQgbWFpbigpIHsKCWludCogbWFzc2l2MSA9IHZlcm51dE1hc3NpdigxLDIsMyk7CglpbnQqIG1hc3NpdjIgPSB2ZXJudXRNYXNzaXYoMiwzLDQpOwoJaW50KiBtYXNzaXYzID0gdmVybnV0TWFzc2l2KDMsNCw1KTsKCQoJY291dCA8PCBtYXNzaXYxWzBdOwoJY291dCA8PCBtYXNzaXYyWzBdOwoJY291dCA8PCBtYXNzaXYzWzBdOwoJCglyZXR1cm4gMDsKfQ==