2015-01-01から1日間の記事一覧

回帰の混乱

最近トップコーダーのアルゴリズム問を解きながら苦労しました。I correctly deduced that the problem had an embedded recursive structure: to flip the ith light switch off meant, in order for the problem to be solved, all light switches at mult…