結果
問題 | No.500 階乗電卓 |
ユーザー |
![]() |
提出日時 | 2020-10-09 20:14:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 298 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-20 07:53:44 |
合計ジャッジ時間 | 1,991 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
N = int(input())if N <= 15:res = 1for i in range(1, N + 1):res *= iprint(res % 10**12)elif 16 <= N <= 50:res = 1for i in range(1, N + 1):res *= ires %= 10**12print(str(res).zfill(12))else:print('0' * 12)