练67.1 斐波那契数列
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
斐波那契数列是指这样的数列:数列的第一个和第二个数都为,接下来每个数都等于前面个数之和。给出一个正整数,要求斐波那契数列中第个数对取模的结果是多少。
输入格式
第1行是测试数据的组数,后面跟着行输入。每组测试数据占行,包括一个正整数()。
输出格式
行,每行输出对应一个输入。输出应是一个正整数,为斐波那契数列中第个数对取模得到的结果。
样例
4
5
2
19
1
5
1
181
1
董轩羽测试
- Status
- Done
- Rule
- Ledo
- Problem
- 9
- Start at
- 2025-8-16 16:15
- End at
- 2025-8-16 17:45
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 2