結果
問題 |
No.500 階乗電卓
|
ユーザー |
![]() |
提出日時 | 2025-04-16 15:47:34 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 81,952 KB |
実行使用メモリ | 53,284 KB |
最終ジャッジ日時 | 2025-04-16 15:48:31 |
合計ジャッジ時間 | 1,771 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 16 WA * 4 |
ソースコード
n = int(input()) mod = 10**12 if n >= 50: print("000000000000") else: result = 1 for i in range(1, n + 1): result = (result * i) % mod print("{:012d}".format(result))