Styrofoam keeps water hot longer because it is not a very good conductor of heat but a glass cup is a good conductor of heat and so is the plastic cup (not as good a heat conductor as glass, but still is).
Which type of cup will keep a hot drink warm longer?