結果

問題 No.64 XORフィボナッチ数列
ユーザー lllllll88938494lllllll88938494
提出日時 2022-06-12 22:45:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 193 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 81,596 KB
実行使用メモリ 79,088 KB
最終ジャッジ日時 2023-10-24 17:21:00
合計ジャッジ時間 1,755 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 WA -
testcase_13 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

f0,f1,n=map(int,input().split())
f={0:f0,1:f1}
def  cal(x):
    if x == 1:return f1
    elif x == 0:return f0
    if x in f:return f[x]
    else:f[x] = cal(x-1)^cal(x-2)
    return f[x]

cal(n)
0