Evaluating Code Generation of LLMs in Advanced Computer Science Problems