結果

問題 No.64 XORフィボナッチ数列
ユーザー maimai
提出日時 2016-02-04 02:53:04
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 148 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 11,888 KB
実行使用メモリ 16,112 KB
最終ジャッジ日時 2023-10-21 18:57:15
合計ジャッジ時間 2,355 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 86 ms
16,112 KB
testcase_02 AC 86 ms
16,112 KB
testcase_03 AC 85 ms
16,112 KB
testcase_04 AC 85 ms
16,112 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 85 ms
16,112 KB
testcase_10 AC 84 ms
16,112 KB
testcase_11 WA -
testcase_12 AC 86 ms
16,112 KB
testcase_13 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

f0,f1,n=gets.split(" ").map!(&:to_i)
if n==0
    p f0
elsif n==1
    p f1
else
    f2=f0^f1
    f3=f1^f2
    f4=f2^f3
    p [f1,f2,f3,f4][n%4+1]
end
0