問題一覧 > ネタ問題

No.8123 Calculated N !

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 9
作問者 : KumaTachiRen
お気に入りにしたユーザー ProblemId : 11073 / 自分の提出
問題文最終更新日: 2025-03-25 14:19:46
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder April Fool Contest 2025 (順位表) の他の問題:

However, since the answer can be very large, output it modulo $1000000007(=10^9+7)$.

Input

$N$

  • $N$ is an integer between $1$ and $10^{10}$, inclusive.

Output

Output on $1$ line. Print a newline at the end.

Sample

Sample 1
Input
2
Output
2
Sample 2
Input
3
Output
4
Sample 3
Input
4
Output
8
Sample 4
Input
5
Output
16
Sample 5
Input
20250401
Output
559031583
Sample 6
Input
9876543210
Output
855701895

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。