結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
|
提出日時 | 2022-09-06 15:48:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 55 ms / 5,000 ms |
コード長 | 633 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,848 KB |
実行使用メモリ | 61,184 KB |
最終ジャッジ日時 | 2024-11-21 16:58:20 |
合計ジャッジ時間 | 1,648 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
def I():return int(input())def MAP():return map(int,input().split())def MAPs():return map(str,input().split())def LI(): return list(map(int,input().split()))def TPL(): return tuple(map(int,input().split()))def S():return input()from collections import defaultdict,Counter,dequefrom copy import deepcopyfrom heapq import heapify,heappop,heappushfrom bisect import bisect_left,bisect_rightfrom itertools import accumulate,product,permutations,combinationsfrom math import gcd,ceil,floor,sqrtinf=float('inf');mod=998244353;Mod=10**9+7f0,f1,n=MAP()if n%3==0:print(f0)elif n%3==1:print(f1)else:print(f0^f1)