问题

inese captain was released by Japan finally, ___nearly a month of detention, whichhas seriously harmed the relationship between the two countries.
A:ended
B:ending
C:to end
D:being ended
B:ending
C:to end
D:being ended
正确答案是: