結果
| 問題 |
No.500 階乗電卓
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-08-12 14:26:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 362 bytes |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-25 03:03:05 |
| 合計ジャッジ時間 | 1,626 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
# your code goes here
#step
N=int(input())
u=0
if N>=60:
print("000000000000")
else:
S=1
for i in range(1,N+1):
S*=i
if S>999999999999:
S=str(S)
S=S[-12:]
S=int(S)
u=1
if u==1 and S<1000000000000:
S=str(S)
for i in range (12-len(S)):
S="0"+S
print(S)
rocoder