More than 30,000 marathoners partook in the annual run from Hopkinton, Mass. to downtown Boston, with many of them finishing in three, four, five hours or more — and often forgoing a bathroom break.