結果
| 問題 | No.500 階乗電卓 |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2023-12-28 14:02:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 139 bytes |
| 記録 | |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 82,476 KB |
| 実行使用メモリ | 53,756 KB |
| 最終ジャッジ日時 | 2024-09-27 15:44:32 |
| 合計ジャッジ時間 | 2,205 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 WA * 13 |
ソースコード
N = int(input())
if N > 50:
print(0)
exit()
mod = 10 ** 12
now = 1
for i in range(1,N+1):
now *= i
now %= mod
print(now)
ntuda