結果

問題 No.2326 Factorial to the Power of Factorial to the...
ユーザー つふみにえ
提出日時 2023-05-28 15:30:12
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 102 bytes
コンパイル時間 1,857 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 268,416 KB
最終ジャッジ日時 2024-12-27 07:03:43
合計ジャッジ時間 67,756 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 TLE * 1
other TLE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n,p = map(int,input().split())
a = 1
for i in range(2,n+1):
  a*=i
print((a**(a**a)//(a*p))%(10**9+7))
0