結果

問題 No.64 XORフィボナッチ数列
ユーザー helical28556801helical28556801
提出日時 2017-04-15 22:19:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 170 bytes
コンパイル時間 367 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 12,488 KB
最終ジャッジ日時 2023-09-25 22:30:18
合計ジャッジ時間 7,111 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 17 ms
8,060 KB
testcase_02 AC 18 ms
7,768 KB
testcase_03 AC 16 ms
8,092 KB
testcase_04 AC 16 ms
8,108 KB
testcase_05 AC 16 ms
7,828 KB
testcase_06 AC 17 ms
7,768 KB
testcase_07 AC 17 ms
7,848 KB
testcase_08 AC 16 ms
7,768 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

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

if N==0:
 print(F0)
 sys.exit()

elif N==1:
 print(F1)
 sys.exit()
 
for i in range(N-1):
 F=F1^F0 
 F0=F1
 F1=F
 
print(F1)
0