結果
| 問題 | No.500 階乗電卓 |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 14:29:01 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 178 bytes |
| 記録 | |
| コンパイル時間 | 241 ms |
| コンパイル使用メモリ | 95,724 KB |
| 実行使用メモリ | 78,464 KB |
| 最終ジャッジ日時 | 2026-07-11 11:48:40 |
| 合計ジャッジ時間 | 3,205 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 2 |
ソースコード
N = int(input())
if N >= 50:
print("000000000000")
else:
mod = 10 ** 12
result = 1
for i in range(1, N + 1):
result = (result * i) % mod
print(result)
gew1fw