The Bay Area has three of the least-affordable cities in the country for teachers, San Francisco, Oakland and San Jose, based on a recent analysis of teachers’ salaries and median rental prices among 50 of the nation’s largest cities by San Francisco-based ApartmentList.com, which tracks rents across the country.