結果

問題 No.790 ちきんの括弧並べ
ユーザー 学ぶマン
提出日時 2025-10-30 19:32:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 82,260 KB
実行使用メモリ 53,980 KB
最終ジャッジ日時 2025-10-30 19:32:43
合計ジャッジ時間 2,032 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#【カタラン数】
import math
N = int(input())

def f(n):
    return math.factorial(2*n)//(math.factorial(n)*math.factorial(n + 1))

print(f(N))
0