結果

問題 No.523 LED
ユーザー kurimupykurimupy
提出日時 2020-06-21 01:53:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 206 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 86,784 KB
実行使用メモリ 76,056 KB
最終ジャッジ日時 2023-09-16 17:59:19
合計ジャッジ時間 3,840 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,456 KB
testcase_01 AC 69 ms
71,016 KB
testcase_02 AC 73 ms
75,788 KB
testcase_03 AC 69 ms
71,292 KB
testcase_04 AC 70 ms
71,464 KB
testcase_05 AC 206 ms
75,984 KB
testcase_06 AC 70 ms
71,148 KB
testcase_07 AC 69 ms
71,152 KB
testcase_08 AC 69 ms
71,272 KB
testcase_09 AC 73 ms
75,752 KB
testcase_10 AC 70 ms
71,228 KB
testcase_11 AC 72 ms
75,840 KB
testcase_12 AC 72 ms
75,768 KB
testcase_13 AC 97 ms
75,592 KB
testcase_14 AC 72 ms
75,984 KB
testcase_15 AC 71 ms
76,056 KB
testcase_16 AC 73 ms
75,988 KB
testcase_17 AC 72 ms
75,896 KB
testcase_18 AC 204 ms
75,904 KB
testcase_19 AC 120 ms
75,920 KB
testcase_20 AC 115 ms
75,756 KB
testcase_21 AC 172 ms
75,976 KB
testcase_22 AC 188 ms
75,956 KB
testcase_23 AC 184 ms
75,916 KB
testcase_24 AC 74 ms
75,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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