結果

問題 No.64 XORフィボナッチ数列
ユーザー togatoga
提出日時 2015-08-19 13:02:14
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 135 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-07-18 10:29:19
合計ジャッジ時間 829 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

f0,f1,N = map(int, raw_input().split())
N += 1
if (N % 3 == 0):
    print f0^f1
elif (N % 3 == 1):
    print f0
else:
    print f1


 
0