結果

問題 No.523 LED
ユーザー 👑 tamatotamato
提出日時 2020-06-02 17:45:44
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 171 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 87,552 KB
実行使用メモリ 75,932 KB
最終ジャッジ日時 2023-08-15 20:32:22
合計ジャッジ時間 3,857 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,728 KB
testcase_01 AC 60 ms
71,704 KB
testcase_02 AC 64 ms
75,756 KB
testcase_03 AC 59 ms
71,536 KB
testcase_04 AC 62 ms
71,812 KB
testcase_05 AC 168 ms
75,708 KB
testcase_06 AC 61 ms
71,680 KB
testcase_07 AC 62 ms
71,592 KB
testcase_08 AC 63 ms
71,408 KB
testcase_09 AC 68 ms
75,784 KB
testcase_10 AC 61 ms
71,496 KB
testcase_11 AC 67 ms
75,772 KB
testcase_12 AC 63 ms
75,820 KB
testcase_13 AC 84 ms
75,864 KB
testcase_14 AC 66 ms
75,608 KB
testcase_15 AC 66 ms
75,932 KB
testcase_16 AC 66 ms
75,888 KB
testcase_17 AC 67 ms
75,768 KB
testcase_18 AC 171 ms
75,840 KB
testcase_19 AC 102 ms
75,692 KB
testcase_20 AC 96 ms
75,828 KB
testcase_21 AC 142 ms
75,856 KB
testcase_22 AC 154 ms
75,860 KB
testcase_23 AC 150 ms
75,768 KB
testcase_24 AC 67 ms
75,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    N = int(input())
    ans = 1
    for i in range(1, 2*N+1):
        if i%2:
            ans = (ans * i)%mod
        else:
            ans = (ans * (i//2))%mod
    print(ans)


if __name__ == '__main__':
    main()
0