A storm system on Saturday brought heavy rain to the Northeast and heavy snow to parts of New England and Northern New York, leaving more than 300,000 households in several states without electricity.

More than 194,000 electricity customers in Maine, more than 71,000 customers in New Hampshire and more than 78,000 in New York State had lost power as of early Sunday morning, according to PowerOutage.us, a website that tracks power failures.

In New York City, the heavy rain and snow cleared overnight, according to the National Weather Service. But a flood advisory for parts of New Jersey and New York City was in effect until 5 a.m.

A flood warning had also been issued for Warren County, N.J., until 8:30 a.m. Such a warning, a higher level than an advisory, means that flooding is imminent or occurring.

The outages and weather notices followed a day of heavy precipitation across the region.

In Central Park, 3.63 inches of rain had fallen as of 5 p.m. Saturday, said David Stark, a meteorologist with the Weather Service Office in New York. Corinth, N.Y., reported over 20 inches of snow by Saturday night, according to the National Weather Service.

Philadelphia had 3.06 inches of rain, the wettest calendar day ever recorded in March in the official observing station since 1872, according to the National Weather Service office in Mount Holly, Pa.