結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
|
提出日時 | 2018-01-18 13:30:39 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 340 bytes |
コンパイル時間 | 2,080 ms |
コンパイル使用メモリ | 173,312 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 11:03:51 |
合計ジャッジ時間 | 2,806 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
importControl.Applicative(<$>)importData.Bitsxormain::IO()main = dosolve <$> getl (map read . words) >>= printsolve::Int->Intsolve [f0, f1, n] = case n `mod` 3 of0 -> f01 -> f12 -> f1 `xor` f0getl::String->a->IOagetl f = f <$> getLine