結果

問題 No.523 LED
ユーザー 👑 rin204rin204
提出日時 2022-07-04 14:25:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 217 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 1,131 ms
コンパイル使用メモリ 86,648 KB
実行使用メモリ 75,748 KB
最終ジャッジ日時 2023-08-20 21:22:40
合計ジャッジ時間 4,710 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,056 KB
testcase_01 AC 75 ms
71,108 KB
testcase_02 AC 79 ms
75,604 KB
testcase_03 AC 73 ms
71,104 KB
testcase_04 AC 75 ms
71,096 KB
testcase_05 AC 214 ms
75,696 KB
testcase_06 AC 74 ms
71,252 KB
testcase_07 AC 75 ms
71,056 KB
testcase_08 AC 75 ms
71,108 KB
testcase_09 AC 78 ms
75,628 KB
testcase_10 AC 73 ms
71,292 KB
testcase_11 AC 75 ms
75,548 KB
testcase_12 AC 76 ms
75,596 KB
testcase_13 AC 103 ms
75,600 KB
testcase_14 AC 76 ms
75,628 KB
testcase_15 AC 76 ms
75,452 KB
testcase_16 AC 77 ms
75,668 KB
testcase_17 AC 78 ms
75,668 KB
testcase_18 AC 217 ms
75,484 KB
testcase_19 AC 125 ms
75,604 KB
testcase_20 AC 121 ms
75,716 KB
testcase_21 AC 180 ms
75,676 KB
testcase_22 AC 192 ms
75,604 KB
testcase_23 AC 193 ms
75,748 KB
testcase_24 AC 81 ms
75,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 10 ** 9 + 7

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)
print(ans % MOD)
0