单选题 (Only) when I got there (I realized) how (badly) the house had been (damaged).

【正确答案】 B
【答案解析】应改为did I realize。only前置时,句子应用倒装结构。