问题

I had been puzzled over the problem for over an hour without any result, ____ all at once the solution flashed across my mind
A:while
B:when
C:then
D:as
B:when
C:then
D:as
正确答案是: