結果
問題 | No.976 2 の 128 乗と M |
ユーザー |
![]() |
提出日時 | 2020-05-03 15:19:34 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 332 ms / 2,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 15,038 ms |
コンパイル使用メモリ | 190,184 KB |
実行使用メモリ | 35,048 KB |
最終ジャッジ日時 | 2024-06-12 06:36:02 |
合計ジャッジ時間 | 34,526 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 50 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (463 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/
ソースコード
// Learn more about F# at http://fsharp.org open System [<EntryPoint>] let main argv = let m = stdin.ReadLine() |> int64 let ans = [1 .. 128] |> List.fold (fun acc _ -> acc * 2L % m) 1L printfn "%d" ans 0 // return an integer exit code