結果
問題 | No.175 simpleDNA |
ユーザー |
|
提出日時 | 2016-10-02 05:16:01 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 341 ms / 1,000 ms |
コード長 | 196 bytes |
コンパイル時間 | 7,607 ms |
コンパイル使用メモリ | 188,444 KB |
実行使用メモリ | 34,912 KB |
最終ジャッジ日時 | 2024-11-21 12:54:29 |
合計ジャッジ時間 | 10,779 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (251 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/
ソースコード
let L = stdin.ReadLine() |> intlet N = stdin.ReadLine() |> intlet _ = stdin.ReadLine()let l = L/3-1let f n = [1..n] |> List.fold (fun s _ -> s*8) 1if l = 0 then N else f l * N|> printfn "%d"