結果

問題 No.64 XORフィボナッチ数列
ユーザー ABKZABKZ
提出日時 2022-01-15 17:39:46
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 137 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 86,772 KB
実行使用メモリ 71,536 KB
最終ジャッジ日時 2023-08-14 02:22:36
合計ジャッジ時間 2,395 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,448 KB
testcase_01 AC 69 ms
71,156 KB
testcase_02 AC 69 ms
71,260 KB
testcase_03 AC 68 ms
71,420 KB
testcase_04 AC 71 ms
71,536 KB
testcase_05 AC 68 ms
71,084 KB
testcase_06 AC 70 ms
71,080 KB
testcase_07 AC 69 ms
71,380 KB
testcase_08 AC 68 ms
71,276 KB
testcase_09 AC 69 ms
71,244 KB
testcase_10 AC 68 ms
71,244 KB
testcase_11 AC 68 ms
71,328 KB
testcase_12 AC 68 ms
71,336 KB
testcase_13 AC 69 ms
71,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

F0, F1, N = map(int, input().split())

F2 = F0 ^ F1

n = N % 3

if n == 0:
  print(F0)
elif n == 1:
  print(F1)
elif n == 2:
  print(F2)
0