Chemical Variation among Protostellar Cores: Dependence on Prestellar Core Conditions