2012-08-30から1日間の記事一覧
--[[ -- Project Euler #1 non-loop -- by NPoi --]] function f(base, max) a = math.floor(base * (math.floor((max - 1) / base) * (math.floor((max - 1) / base) + 1)) / 2) return a; end print(f(3, 1000) + f(5, 1000) - f(3 * 5, 1000)) matsuoka::…