結果
問題 |
No.64 XORフィボナッチ数列
|
ユーザー |
![]() |
提出日時 | 2019-09-27 15:23:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 13,888 KB |
最終ジャッジ日時 | 2024-09-24 06:56:25 |
合計ジャッジ時間 | 7,043 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 TLE * 1 -- * 4 |
ソースコード
# No.64 XORフィボナッチ数列 f0, f1, n = [int(i) for i in input().split()] f = 0 if n == 0: print(f0) elif n == 1: print(f1) else: for i in range(n - 1): f = f0 ^ f1 f0 = f1 f1 = f print(f)