結果

問題 No.523 LED
ユーザー lloyzlloyz
提出日時 2022-10-28 00:03:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 212 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 946 ms
コンパイル使用メモリ 86,684 KB
実行使用メモリ 75,892 KB
最終ジャッジ日時 2023-09-18 18:17:27
合計ジャッジ時間 4,009 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,056 KB
testcase_01 AC 71 ms
71,088 KB
testcase_02 AC 76 ms
75,700 KB
testcase_03 AC 72 ms
71,176 KB
testcase_04 AC 72 ms
71,216 KB
testcase_05 AC 210 ms
75,776 KB
testcase_06 AC 71 ms
71,176 KB
testcase_07 AC 70 ms
71,088 KB
testcase_08 AC 72 ms
71,236 KB
testcase_09 AC 76 ms
75,884 KB
testcase_10 AC 72 ms
71,216 KB
testcase_11 AC 74 ms
75,432 KB
testcase_12 AC 75 ms
75,564 KB
testcase_13 AC 101 ms
75,512 KB
testcase_14 AC 74 ms
75,696 KB
testcase_15 AC 77 ms
75,788 KB
testcase_16 AC 74 ms
75,740 KB
testcase_17 AC 75 ms
75,892 KB
testcase_18 AC 212 ms
75,712 KB
testcase_19 AC 122 ms
75,564 KB
testcase_20 AC 117 ms
75,648 KB
testcase_21 AC 176 ms
75,736 KB
testcase_22 AC 188 ms
75,848 KB
testcase_23 AC 190 ms
75,852 KB
testcase_24 AC 77 ms
75,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
mod = 10**9 + 7

ans = 1
for i in range(2, 2 * n + 1):
    ans *= i
    ans %= mod
inv2 = pow(2, mod - 2, mod)
ans *= pow(inv2, n, mod)
ans %= mod
print(ans)
0