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

剰余を足すアルゴリズム

最近トップコーダーの問を解こうとしたが最適の回答が簡単ではない。The brute force solution to the problem of solving the sum of f(i) where i iterates from 1 to R, where f(i) involves taking i mod m1 mod m2...mod mn for a given sequence m, is…