結果

問題 No.523 LED
ユーザー mitsuomitsuo
提出日時 2017-06-26 10:12:35
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 283 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-15 01:47:26
合計ジャッジ時間 16,424 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,812 KB
testcase_01 AC 11 ms
6,944 KB
testcase_02 AC 44 ms
6,940 KB
testcase_03 AC 12 ms
6,944 KB
testcase_04 AC 11 ms
6,944 KB
testcase_05 TLE -
testcase_06 AC 12 ms
6,940 KB
testcase_07 AC 11 ms
6,944 KB
testcase_08 AC 12 ms
6,944 KB
testcase_09 AC 30 ms
6,940 KB
testcase_10 AC 12 ms
6,944 KB
testcase_11 AC 13 ms
6,940 KB
testcase_12 AC 12 ms
6,940 KB
testcase_13 AC 556 ms
6,944 KB
testcase_14 AC 12 ms
6,940 KB
testcase_15 AC 14 ms
6,944 KB
testcase_16 AC 11 ms
6,944 KB
testcase_17 AC 15 ms
6,940 KB
testcase_18 TLE -
testcase_19 AC 1,017 ms
6,944 KB
testcase_20 AC 898 ms
6,940 KB
testcase_21 TLE -
testcase_22 TLE -
testcase_23 TLE -
testcase_24 AC 63 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

import math

def t(n):
    t = 1
    for k in xrange(1, n * 2 + 1):
        t *= k
        if( k % 2 == 0 ):
            t /= 2
        t %= 1000000007
    return t


def solve(n):
    return t(n)

if __name__ == "__main__":
    print solve(int(raw_input()))
0