ExPairT-LLM: Exact Learning for LLM Code Selection by Pairwise Queries