正文
增加 1 行删除 1 行
60 行未改动6162636465666768697 行未改动60 行未改动1. 初始化结果 $res$ 为 $ans_n$。2. 对于所有的偶数 $i$($2$ $\leq$ $i$ $\leq$ $n$),将 $res$ 更新为:$$res = (res + C_{n}^i \times fact_{i-1} \times ans_{n-i}) \bmod mod$$最后输出结果 $res$ 即可。7 行未改动60 行未改动6162636465666768697 行未改动60 行未改动1. 初始化结果 $res$ 为 $ans_n$。2. 对于所有的偶数 $i$($2$ $\leq$ $i$ $\leq$ $n$),将 $res$ 更新为:$$res = (res + C_{n}^i \times fact_{i-1} \times ans_{n-i}) \bmod mod$$最后输出结果 $res$ 即可。7 行未改动