結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2017-08-15 15:33:27 |
言語 | OCaml (5.2.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 210 bytes |
コンパイル時間 | 304 ms |
コンパイル使用メモリ | 21,704 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 00:17:44 |
合計ジャッジ時間 | 1,020 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
let () =let f0, f1, n = Scanf.scanf "%d %d %d " (fun f0 f1 n -> f0, f1, n) inmatch n mod 3 with| 0 -> Printf.printf "%d\n" f0| 1 -> Printf.printf "%d\n" f1| _ -> Printf.printf "%d\n" (f0 lxor f1)