結果

問題 No.64 XORフィボナッチ数列
ユーザー mmmpppmmmppp
提出日時 2017-02-17 20:25:36
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 78 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 18,144 KB
最終ジャッジ日時 2023-08-29 21:50:58
合計ジャッジ時間 2,127 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,016 KB
testcase_01 AC 87 ms
15,076 KB
testcase_02 AC 81 ms
15,248 KB
testcase_03 AC 83 ms
15,036 KB
testcase_04 AC 84 ms
15,288 KB
testcase_05 AC 86 ms
15,136 KB
testcase_06 AC 83 ms
15,028 KB
testcase_07 AC 83 ms
15,240 KB
testcase_08 AC 83 ms
15,244 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 82 ms
15,316 KB
testcase_13 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b,n=gets.split.map &:to_i
c=[a,b];f=->i{c[i]?c[i]:c[i]=f[i-1]^f[i-2]};p f[n]
0