Improved speed of ID 7.
Added an answer of ID 10.

遅いしスタックも食います。
Added an answer to ID 11.