Exceptionally high temperatures strained electricity systems as people sought air-conditioning, although many did not have that option.