Semilinear subdiffusion with memory in the one-dimensional case