The nflsM Tokens (EASY) (Fib3 Queue 2)
测试数据来自 AOCode/1039
P1039 The nflsM Tokens (EASY) (Fib3 Queue 2)
Problem Background
The NFLS (Nasty Fluffy Lost School) Mathematics & Logic & Life Club is holding a ceremony! There’s a kind of tokens, called the nflsM Tokens, in this ceremony.
AppOfficer (as a student of the school again), again get the tokens easily. But Cui2010 can’t get them by himself! So he asks AppOfficer to give him some, even if he won’t get much of them this way.
AppOfficer asks him to answer a question. Can you help him answer?
Problem Statement
Define with .
Given queries. For each query, get the value of , modulo .
Input
For each query, there’s an integer in one line.
Output
For each query, print in a line.
Constraints
- .
- .
- All values in input are integers.
Samples
Input 1
Output 1
The sequence:
From the sequence we can get the answer.
信息
- ID
- 1000
- 难度
- 9
- 分类
- (无)
- 标签
- 递交数
- 1
- 已通过
- 1
- 通过率
- 100%
- 上传者