結果

問題 No.64 XORフィボナッチ数列
ユーザー tookunn_1213tookunn_1213
提出日時 2015-04-08 22:37:06
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 204 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 6,716 KB
実行使用メモリ 10,348 KB
最終ジャッジ日時 2023-09-17 18:55:59
合計ジャッジ時間 7,040 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,872 KB
testcase_01 AC 11 ms
5,932 KB
testcase_02 AC 11 ms
5,836 KB
testcase_03 AC 11 ms
5,796 KB
testcase_04 AC 12 ms
6,012 KB
testcase_05 AC 11 ms
5,792 KB
testcase_06 AC 11 ms
5,832 KB
testcase_07 AC 11 ms
5,792 KB
testcase_08 AC 11 ms
5,980 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,N = map(int,raw_input().split())
count = 0
stack = []
stack.append(b)
stack.append(a)
while N>count:
	B = stack.pop()
	A = stack.pop()
	stack.append(A^B)
	stack.append(A)
	count += 1
print stack.pop()
0