2013-07-08から1日間の記事一覧

C#でProject Euler(5) 速度

C#

ここで時間計測をしてみましょう。 using System; using System.Linq; class e001 { static void Main(string[] args) { var sw = new System.Diagnostics.Stopwatch(); sw.Start(); const int N = (int)1e9; var s = Enumerable.Range(1, N - 1). Where(n =…