結果

問題 No.64 XORフィボナッチ数列
ユーザー regeregeregerege
提出日時 2016-03-26 20:31:50
言語 F#
(F# 4.0)
結果
AC  
実行時間 90 ms / 5,000 ms
コード長 297 bytes
コンパイル時間 6,460 ms
コンパイル使用メモリ 185,872 KB
実行使用メモリ 34,688 KB
最終ジャッジ日時 2024-04-10 00:04:20
合計ジャッジ時間 8,597 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
34,176 KB
testcase_01 AC 87 ms
34,304 KB
testcase_02 AC 88 ms
34,688 KB
testcase_03 AC 89 ms
34,432 KB
testcase_04 AC 88 ms
34,560 KB
testcase_05 AC 87 ms
34,304 KB
testcase_06 AC 87 ms
34,304 KB
testcase_07 AC 88 ms
34,560 KB
testcase_08 AC 88 ms
34,304 KB
testcase_09 AC 90 ms
34,688 KB
testcase_10 AC 89 ms
34,432 KB
testcase_11 AC 89 ms
34,304 KB
testcase_12 AC 87 ms
34,560 KB
testcase_13 AC 86 ms
34,176 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (225 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/

ソースコード

diff #

let ``No.64 XORフィボナッチ数列``() =
    let f (s:string) =
        let arr = s.Split(' ') |> Array.map bigint.Parse
        let n = arr.[2]
        arr.[2] <- arr.[0] ^^^ arr.[1]
        arr.[int(n % 3I)]
    f <| stdin.ReadLine() |> printfn "%A"
``No.64 XORフィボナッチ数列``()
0