答案选B:Had I realized
B选项是省略if的虚拟句的倒装形式.
正常语序是:if i had realized
通过wouldn't have done判断出是虚拟语气.
且主句是过去时,从句要用过去完成时.
所以只能选B