結果
問題 |
No.500 階乗電卓
|
ユーザー |
![]() |
提出日時 | 2017-08-02 18:11:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 253 bytes |
コンパイル時間 | 336 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,560 KB |
最終ジャッジ日時 | 2024-10-11 12:57:42 |
合計ジャッジ時間 | 6,749 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 19 |
ソースコード
# https://yukicoder.me/problems/no/500 def main(n): MAX = 1000000000000 res = 1 for i in range(1, n+1): res = res * i if res > MAX: res %= MAX print(res) if __name__ == "__main__": n = int(input()) main(n)