結果
問題 | No.500 階乗電卓 |
ユーザー |
|
提出日時 | 2017-05-09 13:21:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 283 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-25 03:00:48 |
合計ジャッジ時間 | 1,761 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
N = int(input())ans = 1if N < 15 :for i in range(1,N+1):ans = ans * ians_l = str(ans)elif N >= 15 and N < 50:for i in range(1,N+1):ans = ans * ians_l = str(ans)ans = ans_l[-12:]elif N >= 50:ans = "000000000000"print(ans)