結果

問題 No.64 XORフィボナッチ数列
ユーザー Nobita GomuNobita Gomu
提出日時 2017-10-18 23:51:48
言語 F#
(F# 4.0)
結果
AC  
実行時間 85 ms / 5,000 ms
コード長 200 bytes
コンパイル時間 3,486 ms
コンパイル使用メモリ 153,188 KB
実行使用メモリ 24,960 KB
最終ジャッジ日時 2023-08-11 21:09:21
合計ジャッジ時間 5,724 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
22,868 KB
testcase_01 AC 85 ms
23,000 KB
testcase_02 AC 83 ms
20,880 KB
testcase_03 AC 84 ms
22,900 KB
testcase_04 AC 84 ms
24,960 KB
testcase_05 AC 83 ms
23,008 KB
testcase_06 AC 82 ms
22,948 KB
testcase_07 AC 83 ms
20,780 KB
testcase_08 AC 84 ms
22,944 KB
testcase_09 AC 84 ms
22,832 KB
testcase_10 AC 83 ms
22,912 KB
testcase_11 AC 83 ms
22,924 KB
testcase_12 AC 81 ms
22,876 KB
testcase_13 AC 83 ms
22,888 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let n0, n1, n =
    stdin.ReadLine ()
    |> fun s -> s.Split ' '
    |> Array.map int64
    |> fun a -> (a.[0], a.[1], a.[2])

match n % 3L with
| 0L -> n0
| 1L -> n1
| _ -> n0 ^^^ n1
|> printfn "%d"
0