Another n-Queen Problem

UVA - 11195