結果

問題 No.523 LED
ユーザー mitsuomitsuo
提出日時 2017-12-31 13:02:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 850 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 1,396 ms
コンパイル使用メモリ 86,568 KB
実行使用メモリ 76,024 KB
最終ジャッジ日時 2023-08-23 12:24:46
合計ジャッジ時間 7,456 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,324 KB
testcase_01 AC 72 ms
70,816 KB
testcase_02 AC 76 ms
75,204 KB
testcase_03 AC 71 ms
71,344 KB
testcase_04 AC 69 ms
71,076 KB
testcase_05 AC 847 ms
75,980 KB
testcase_06 AC 70 ms
71,172 KB
testcase_07 AC 71 ms
71,244 KB
testcase_08 AC 70 ms
71,244 KB
testcase_09 AC 75 ms
75,312 KB
testcase_10 AC 71 ms
70,876 KB
testcase_11 AC 72 ms
71,460 KB
testcase_12 AC 70 ms
71,236 KB
testcase_13 AC 213 ms
75,760 KB
testcase_14 AC 71 ms
71,216 KB
testcase_15 AC 74 ms
75,416 KB
testcase_16 AC 71 ms
71,168 KB
testcase_17 AC 74 ms
75,272 KB
testcase_18 AC 850 ms
75,868 KB
testcase_19 AC 346 ms
76,024 KB
testcase_20 AC 313 ms
75,924 KB
testcase_21 AC 653 ms
75,916 KB
testcase_22 AC 724 ms
75,900 KB
testcase_23 AC 723 ms
75,832 KB
testcase_24 AC 81 ms
75,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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