結果
問題 | No.500 階乗電卓 |
ユーザー |
![]() |
提出日時 | 2017-08-12 14:22:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 356 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-13 04:52:03 |
合計ジャッジ時間 | 1,476 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 14 RE * 6 |
ソースコード
#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)