結果

問題 No.523 LED
ユーザー roarisroaris
提出日時 2019-08-12 11:58:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 868 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 87,072 KB
実行使用メモリ 381,476 KB
最終ジャッジ日時 2023-10-13 13:53:17
合計ジャッジ時間 8,647 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,416 KB
testcase_01 AC 72 ms
71,440 KB
testcase_02 AC 89 ms
92,104 KB
testcase_03 AC 77 ms
71,152 KB
testcase_04 AC 71 ms
71,404 KB
testcase_05 AC 868 ms
381,476 KB
testcase_06 AC 71 ms
71,484 KB
testcase_07 AC 70 ms
71,408 KB
testcase_08 AC 72 ms
71,604 KB
testcase_09 AC 84 ms
84,444 KB
testcase_10 AC 72 ms
71,432 KB
testcase_11 AC 77 ms
76,268 KB
testcase_12 AC 76 ms
75,996 KB
testcase_13 AC 224 ms
253,160 KB
testcase_14 AC 77 ms
76,152 KB
testcase_15 AC 78 ms
76,480 KB
testcase_16 AC 77 ms
76,204 KB
testcase_17 AC 77 ms
76,640 KB
testcase_18 AC 837 ms
381,444 KB
testcase_19 AC 339 ms
253,280 KB
testcase_20 AC 309 ms
253,024 KB
testcase_21 AC 664 ms
311,604 KB
testcase_22 AC 752 ms
340,316 KB
testcase_23 AC 738 ms
340,056 KB
testcase_24 AC 98 ms
102,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
MOD = 10 ** 9 + 7

arr = [1]

for i in range(1, 2*N+1):
    if i % 2 == 0:
        i //= 2
        
    arr.append(arr[-1] * i % MOD)

ans = arr[2*N]

print(ans)
0