結果

問題 No.64 XORフィボナッチ数列
ユーザー ciirociiro
提出日時 2021-12-07 23:47:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 12,516 KB
最終ジャッジ日時 2023-09-22 11:45:07
合計ジャッジ時間 6,890 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,904 KB
testcase_01 WA -
testcase_02 AC 16 ms
7,816 KB
testcase_03 WA -
testcase_04 AC 16 ms
7,840 KB
testcase_05 AC 16 ms
7,776 KB
testcase_06 AC 15 ms
7,812 KB
testcase_07 AC 15 ms
7,776 KB
testcase_08 AC 16 ms
7,836 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

a = [f1,f0]
i = 1

while True:
	if n == 0:
		a[0] == f0
		break
	if i >= n:
		break
	f = a[0] ^ a[1]
	a[0] , a[1] = f , a[0]
	
	i += 1
	
print(a[0])
0