數月努力,徒勞無功,科學家突發奇想,問題迎刃而解英文怎麼說?

After months of futile labor, the scientist suddenly had a brainstorm and solved the problem.