結果

問題 No.523 LED
ユーザー AEnAEn
提出日時 2022-05-19 10:18:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 792 ms / 2,000 ms
コード長 113 bytes
コンパイル時間 469 ms
コンパイル使用メモリ 81,828 KB
実行使用メモリ 74,964 KB
最終ジャッジ日時 2023-10-17 18:38:53
合計ジャッジ時間 6,766 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 38 ms
53,460 KB
testcase_02 AC 47 ms
63,708 KB
testcase_03 AC 37 ms
53,460 KB
testcase_04 AC 42 ms
53,460 KB
testcase_05 AC 792 ms
74,888 KB
testcase_06 AC 37 ms
53,460 KB
testcase_07 AC 37 ms
53,460 KB
testcase_08 AC 37 ms
53,460 KB
testcase_09 AC 41 ms
59,548 KB
testcase_10 AC 37 ms
53,460 KB
testcase_11 AC 37 ms
53,460 KB
testcase_12 AC 37 ms
53,460 KB
testcase_13 AC 186 ms
74,888 KB
testcase_14 AC 37 ms
53,460 KB
testcase_15 AC 40 ms
59,548 KB
testcase_16 AC 38 ms
53,460 KB
testcase_17 AC 41 ms
59,548 KB
testcase_18 AC 789 ms
74,888 KB
testcase_19 AC 307 ms
74,888 KB
testcase_20 AC 278 ms
74,888 KB
testcase_21 AC 601 ms
74,888 KB
testcase_22 AC 665 ms
74,964 KB
testcase_23 AC 668 ms
74,964 KB
testcase_24 AC 53 ms
71,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
m=10**9+7
r=1
p=pow(2,m-2,m)
for i in range(N, 0, -1):
    r*=(2*i*(2*i-1)*p)%m
    r%=m
print(r)
0