結果

問題 No.2143 Only One Bracket
ユーザー tamato
提出日時 2022-12-02 21:35:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 82,100 KB
実行使用メモリ 53,556 KB
最終ジャッジ日時 2024-10-09 22:41:51
合計ジャッジ時間 1,044 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


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

    N = int(input())

    print("(")
    for i in range(1, N - 1):
        print(")" * i + "(" * (i+1))
    print(")" * (N - 1))


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