結果

問題 No.64 XORフィボナッチ数列
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-07-11 23:21:50
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 88 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 71,372 KB
最終ジャッジ日時 2023-09-14 20:26:03
合計ジャッジ時間 2,644 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,352 KB
testcase_01 AC 71 ms
71,204 KB
testcase_02 AC 70 ms
71,356 KB
testcase_03 AC 70 ms
71,196 KB
testcase_04 AC 74 ms
71,168 KB
testcase_05 AC 68 ms
71,372 KB
testcase_06 AC 72 ms
71,344 KB
testcase_07 AC 69 ms
71,184 KB
testcase_08 AC 68 ms
71,256 KB
testcase_09 AC 72 ms
71,200 KB
testcase_10 AC 71 ms
71,168 KB
testcase_11 AC 69 ms
70,916 KB
testcase_12 AC 72 ms
71,332 KB
testcase_13 AC 71 ms
71,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

f0, f1, n = map(int,input().split())

d = [f0, f1]
d.append(d[-1]^d[-2])
print(d[n%3])

0