If the computer science classes felt extremely demanding, the applicant likely won’t be admitted to a top 10 CS program.
My son took three years of Spanish (no AP) and two years of CS and I think he’s deficient because he didn’t develop proficiency in Spanish and didn’t ace CS.