I meet a memory error problem which is I need to use loops to store many zero elements and if it satisfy the conditions they will store another type of elements by calculati