結果

問題 No.523 LED
ユーザー h_nosonh_noson
提出日時 2017-06-13 21:48:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 779 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 1,453 ms
コンパイル使用メモリ 81,304 KB
実行使用メモリ 74,592 KB
最終ジャッジ日時 2023-10-24 21:51:20
合計ジャッジ時間 7,064 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,196 KB
testcase_01 AC 34 ms
53,196 KB
testcase_02 AC 44 ms
63,412 KB
testcase_03 AC 34 ms
53,208 KB
testcase_04 AC 33 ms
53,208 KB
testcase_05 AC 768 ms
74,592 KB
testcase_06 AC 35 ms
53,208 KB
testcase_07 AC 34 ms
53,208 KB
testcase_08 AC 34 ms
53,208 KB
testcase_09 AC 38 ms
59,260 KB
testcase_10 AC 34 ms
53,208 KB
testcase_11 AC 34 ms
53,208 KB
testcase_12 AC 33 ms
53,208 KB
testcase_13 AC 177 ms
74,584 KB
testcase_14 AC 36 ms
53,208 KB
testcase_15 AC 39 ms
59,260 KB
testcase_16 AC 34 ms
53,208 KB
testcase_17 AC 37 ms
59,260 KB
testcase_18 AC 779 ms
74,592 KB
testcase_19 AC 298 ms
74,584 KB
testcase_20 AC 267 ms
74,584 KB
testcase_21 AC 588 ms
74,588 KB
testcase_22 AC 655 ms
74,588 KB
testcase_23 AC 663 ms
74,588 KB
testcase_24 AC 47 ms
69,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

ans = 1
for i in range(n):
    ans *= (2*n-2*i) * (2*n-2*i-1) // 2
    ans %= 10**9 + 7
print(ans)
0