結果

問題 No.523 LED
ユーザー tktk_snsntktk_snsn
提出日時 2021-01-05 09:07:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 161 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 82,132 KB
実行使用メモリ 59,332 KB
最終ジャッジ日時 2024-04-23 15:33:45
合計ジャッジ時間 2,541 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,924 KB
testcase_01 AC 36 ms
53,500 KB
testcase_02 AC 40 ms
58,208 KB
testcase_03 AC 32 ms
53,160 KB
testcase_04 AC 32 ms
52,248 KB
testcase_05 AC 161 ms
59,332 KB
testcase_06 AC 33 ms
51,776 KB
testcase_07 AC 33 ms
53,628 KB
testcase_08 AC 34 ms
52,812 KB
testcase_09 AC 38 ms
57,960 KB
testcase_10 AC 38 ms
52,436 KB
testcase_11 AC 36 ms
58,088 KB
testcase_12 AC 37 ms
57,940 KB
testcase_13 AC 63 ms
58,048 KB
testcase_14 AC 36 ms
58,708 KB
testcase_15 AC 36 ms
58,248 KB
testcase_16 AC 37 ms
57,968 KB
testcase_17 AC 35 ms
58,684 KB
testcase_18 AC 159 ms
58,248 KB
testcase_19 AC 80 ms
57,520 KB
testcase_20 AC 74 ms
58,476 KB
testcase_21 AC 126 ms
58,928 KB
testcase_22 AC 142 ms
57,888 KB
testcase_23 AC 142 ms
57,876 KB
testcase_24 AC 39 ms
58,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
n = int(input())

ans = 1
for i in range(1, 2 * n + 1):
    ans *= i
    ans %= mod

ans *= pow(pow(2, n, mod), mod - 2, mod)
ans %= mod
print(ans)
0