結果

問題 No.523 LED
ユーザー lllllll88938494lllllll88938494
提出日時 2023-07-09 01:55:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 190 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 477 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 76,052 KB
最終ジャッジ日時 2023-09-30 04:17:27
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,272 KB
testcase_01 AC 61 ms
71,272 KB
testcase_02 AC 68 ms
75,772 KB
testcase_03 AC 60 ms
71,408 KB
testcase_04 AC 58 ms
71,448 KB
testcase_05 AC 181 ms
75,960 KB
testcase_06 AC 60 ms
71,312 KB
testcase_07 AC 60 ms
71,376 KB
testcase_08 AC 58 ms
71,408 KB
testcase_09 AC 63 ms
75,948 KB
testcase_10 AC 62 ms
71,448 KB
testcase_11 AC 62 ms
75,876 KB
testcase_12 AC 63 ms
75,816 KB
testcase_13 AC 88 ms
76,048 KB
testcase_14 AC 63 ms
75,912 KB
testcase_15 AC 62 ms
75,820 KB
testcase_16 AC 63 ms
75,824 KB
testcase_17 AC 63 ms
75,820 KB
testcase_18 AC 190 ms
76,052 KB
testcase_19 AC 106 ms
75,860 KB
testcase_20 AC 102 ms
75,800 KB
testcase_21 AC 153 ms
75,960 KB
testcase_22 AC 166 ms
75,892 KB
testcase_23 AC 168 ms
75,916 KB
testcase_24 AC 70 ms
75,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans = 1
mod = 1000000007
s = pow(pow(2,n,mod),mod-2,mod)
for i in range(1,n*2+1):
    ans *= i
    ans %= mod

print(ans*s%mod)
0