F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

斐波那契阶乘

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 1    Accepted Submission(s): 1


Problem Description
想必大家都很熟悉阶乘的概念。具体来说, $n!=1 \times 2 \times 3 \cdots \times n-1 \times n $。

想必大家也很熟悉斐波那契数列的概念。具体来说,$Fib[1]=1,Fib[2]=2,Fib[n]=Fib[n-1]+Fib[n-2]$。

现在给出 $n$ ,请你算一算 $Fib[1] \times Fib[2] \cdots \times Fib[n-1] \times Fib[n]$ 的值。
由于这个值很大,请你输出答案除以 $998244353$ 的余数。
 

Input
第一行一个整数 $T(1 \leq T \leq 20)$ ,表示测试数据组数。接下来包含 $T$ 组测试数据。

对于每组测试数据,输入一个数 $n(1 \leq n \leq 2 \times 10^5)$。
 

Output
对于每组测试数据,输出一个数,表示答案。
 

Sample Input
2 2 7351
 

Sample Output
2 560233622
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-03-29 02:00:16, Gzip enabled