結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2022-11-07 06:09:27 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 5,000 ms |
コード長 | 224 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-07-20 15:30:37 |
合計ジャッジ時間 | 1,778 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
import sys input=lambda:sys.stdin.readline().rstrip() ans,F,pt=0,[0,0],0 *F,N=map(int,input().split()) while max(F): if (F[0]%2)|(F[1]%2)==1 and (F[0]%2)*2+F[1]%2-N%3-1!=0: ans+=1<<pt pt+=1 F[0]>>=1 F[1]>>=1 print(ans)