結果
問題 | No.354 メルセンヌ素数 |
ユーザー | ichibanshibori |
提出日時 | 2016-04-28 23:49:31 |
言語 | F# (F# 4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 8,273 ms |
コンパイル使用メモリ | 183,232 KB |
実行使用メモリ | 59,876 KB |
最終ジャッジ日時 | 2024-04-15 05:15:13 |
合計ジャッジ時間 | 13,809 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 332 ms
38,624 KB |
testcase_01 | AC | 330 ms
42,040 KB |
testcase_02 | AC | 336 ms
35,224 KB |
testcase_03 | AC | 334 ms
36,024 KB |
testcase_04 | AC | 330 ms
36,936 KB |
testcase_05 | AC | 345 ms
37,824 KB |
testcase_06 | AC | 561 ms
59,876 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (245 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
open System let toSosu p = bigint 2 ** p - bigint.One let toBinSeq num = Seq.unfold (fun n -> if n = bigint.Zero then None else Some(int(n % bigint 2), n / bigint 2)) num Console.ReadLine () |> int |> toSosu |> toBinSeq |> Seq.sum |> printfn "%d"