On the final day of campaigning, party leaders crisscrossed the country, trying to swing the result of a tight contest, though many voters appeared dispirited.