結果

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

テストケース

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

ソースコード

diff #

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