結果

問題 No.8045 怪文書
ユーザー O2MT
提出日時 2020-08-27 16:35:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 167 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,884 KB
最終ジャッジ日時 2024-11-07 20:30:51
合計ジャッジ時間 3,869 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 6 TLE * 1 -- * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

def factorial_cor(n):
    fact = 1
    for integer in range(1, n + 1):
        fact *= integer
    return fact
N,M = map(int,input().split())
print(factorial_cor(N)%M)
0