Chef and Digit Jumps

I have my solution with code SIGSEGV.
How many memory I can use in this problem?

I have 2 arrays of N and 1 vector structure with max sum of element = N? what’s a problem?

try declaring them outside main.Huge memory cant be declared inside any fucntion.

1 Like

I know that.

1 Like

@djez may be the problem is not memory allocation 10^5 can be allocated easily. You might want to check your code for memory access violation which is one possible reason for SIGSEGV

1 Like
//