結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,096 KB
testcase_01 AC 27 ms
10,096 KB
testcase_02 AC 52 ms
10,096 KB
testcase_03 AC 28 ms
10,096 KB
testcase_04 AC 28 ms
10,096 KB
testcase_05 TLE -
testcase_06 AC 28 ms
10,096 KB
testcase_07 AC 28 ms
10,096 KB
testcase_08 AC 28 ms
10,096 KB
testcase_09 AC 41 ms
10,096 KB
testcase_10 AC 28 ms
10,096 KB
testcase_11 AC 28 ms
10,096 KB
testcase_12 AC 28 ms
10,096 KB
testcase_13 AC 430 ms
10,096 KB
testcase_14 AC 28 ms
10,096 KB
testcase_15 AC 29 ms
10,096 KB
testcase_16 AC 28 ms
10,096 KB
testcase_17 AC 29 ms
10,096 KB
testcase_18 TLE -
testcase_19 AC 772 ms
10,096 KB
testcase_20 AC 684 ms
10,096 KB
testcase_21 AC 1,595 ms
10,096 KB
testcase_22 AC 1,780 ms
10,096 KB
testcase_23 AC 1,783 ms
10,096 KB
testcase_24 AC 66 ms
10,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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