結果
| 問題 |
No.500 階乗電卓
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 14:27:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 163 bytes |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 82,624 KB |
| 実行使用メモリ | 53,964 KB |
| 最終ジャッジ日時 | 2025-06-12 14:28:04 |
| 合計ジャッジ時間 | 1,953 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 WA * 13 |
ソースコード
n = int(input())
if n >= 50:
print(0)
else:
mod = 10**12
result = 1
for i in range(1, n + 1):
result = (result * i) % mod
print(result)
gew1fw