The 19F(p, n)19Ne and 39K(p, n)39Ca reactions at intermediate energies and quenching of the Gamow-Teller strength