結果
| 問題 | No.500 階乗電卓 |
| コンテスト | |
| ユーザー |
realDivineJK
|
| 提出日時 | 2020-05-26 23:55:53 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 68µs | |
| コード長 | 243 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-15 08:19:36 |
| 合計ジャッジ時間 | 1,868 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
N = int(input())
mod = int(1e12)
if N >= 60:
print("0"*12)
else:
k = 1
for i in range(N):
k *= i + 1
k %= mod
if N >= 15:
print((12-len(str(k)))*'0', end = '')
print(k)
else:
print(k)
realDivineJK