I had some health problems that caused me to have to repeat my junior year (didn’t fail, just wasn’t able to finish the year), and I had to move to be closer to my doctor. I no longer live in Virginia, but I am still a VA resident b/c my parents still live there (I moved in with my grandparents). I have a 33 ACT, and have gotten mostly As in Honors and AP classes, but my extracurriculars and sports are not extensive because of my health. I have had a few leadership positions and tutor fourth graders from Sudan though. How badly will having five years of high school screw me up?
I would be less concerned with 5 years of high school and more concerned with your extra curriculars. I honestly thnk without good ECs you’d need Straight As (Not mostly As) to get into the schools you listed. In regards to the 5 years, that could make for a good college essay and would also let admissions know your circumstances and possibly look at your transcript with some sympathy. Obviously they don’t want to hear a sob story but If the condition affected your performance in school (which I’m sure it did) you definitely want them to know about it
I agree with @diplomill, ECs are a make or break. An essay could explain your problems but that wouldn’t be of much help too. Ivies have loads of students with perfect GPAs and really good ECs every year, and thus they reject many on point students.
UVa has a 40% in-state acceptance rate. I definitely think you will get in. Dartmouth and Penn will be significantly more difficult.