結果
問題 | No.314 ケンケンパ |
ユーザー |
|
提出日時 | 2015-12-08 08:54:57 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 339 ms / 1,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 14,803 ms |
コンパイル使用メモリ | 189,320 KB |
実行使用メモリ | 34,728 KB |
最終ジャッジ日時 | 2024-09-14 19:34:44 |
合計ジャッジ時間 | 22,660 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (562 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/
ソースコード
// yukicoder My Practice// author: Leonardone @ NEETSDKASUopen Systemlet n = int64(Console.ReadLine())let md = 1000000007Llet rec f a b c n =if n = 0L then(a + b + c) % mdelsef ((b + c) % md) a b (n - 1L)printf "%d" <| f 0L 1L 0L (n - 1L)