結果

問題 No.523 LED
ユーザー mitsuomitsuo
提出日時 2017-12-31 12:57:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 217 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 11,712 KB
実行使用メモリ 10,048 KB
最終ジャッジ日時 2023-11-06 04:19:14
合計ジャッジ時間 13,018 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,048 KB
testcase_01 AC 29 ms
10,048 KB
testcase_02 AC 53 ms
10,048 KB
testcase_03 AC 28 ms
10,048 KB
testcase_04 AC 28 ms
10,048 KB
testcase_05 TLE -
testcase_06 AC 29 ms
10,048 KB
testcase_07 AC 29 ms
10,048 KB
testcase_08 AC 29 ms
10,048 KB
testcase_09 AC 43 ms
10,048 KB
testcase_10 AC 30 ms
10,048 KB
testcase_11 AC 29 ms
10,048 KB
testcase_12 AC 29 ms
10,048 KB
testcase_13 AC 427 ms
10,048 KB
testcase_14 AC 29 ms
10,048 KB
testcase_15 AC 31 ms
10,048 KB
testcase_16 AC 28 ms
10,048 KB
testcase_17 AC 30 ms
10,048 KB
testcase_18 TLE -
testcase_19 AC 763 ms
10,048 KB
testcase_20 AC 679 ms
10,048 KB
testcase_21 AC 1,576 ms
10,048 KB
testcase_22 AC 1,762 ms
10,048 KB
testcase_23 AC 1,756 ms
10,048 KB
testcase_24 AC 67 ms
10,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


def solve(l):
    DIV = 1000000007
    ans = 1
    for i in range(1, l + 1):
        ans = (ans * i * (2 * i - 1)) % DIV
    return ans

if __name__ == '__main__':
    l = int(input().split()[0])
    print(solve(l))
0