結果
| 問題 | No.500 階乗電卓 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-27 23:59:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 120 bytes |
| 記録 | |
| コンパイル時間 | 352 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 25,072 KB |
| 最終ジャッジ日時 | 2024-12-29 07:10:08 |
| 合計ジャッジ時間 | 31,699 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 WA * 4 TLE * 9 |
ソースコード
n=int(input())
sum=1
for i in range(1,n+1):
sum*=i
if 10**11<=sum:
print(sum%(10**12))
else:
print(sum)