Particle acceleration as viewed from the observations of flare-associated gamma-ray emissions