We consider third-order autonomous continuous piecewise differential equations in the variable x. For such differential equations with nonlinearities of the form x(m), we investigate their periodic solutions using the averaging theory. We remark that since the differential system is only continuous we cannot apply to it the classical averaging theory, that needs that the differential system be at least of class C-2.