Existence and nonexistence results of impulsive first-order problem with integral boundary condition