結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
|
提出日時 | 2024-12-22 19:12:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 5,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-22 19:12:44 |
合計ジャッジ時間 | 1,615 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
def main(): f_0, f_1, n = [int(i) for i in input().split()] if n % 3 == 0: ans = f_0 elif n % 3 == 1: ans = f_1 elif n % 3 == 2: ans = f_0 ^ f_1 print(ans) if __name__ == "__main__": main()