結果

問題 No.2143 Only One Bracket
ユーザー 👑 KazunKazun
提出日時 2022-12-02 21:46:40
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 87,336 KB
実行使用メモリ 71,504 KB
最終ジャッジ日時 2023-07-31 04:39:49
合計ジャッジ時間 1,777 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,380 KB
testcase_01 AC 68 ms
71,380 KB
testcase_02 AC 68 ms
71,460 KB
testcase_03 AC 68 ms
71,336 KB
testcase_04 AC 69 ms
71,176 KB
testcase_05 AC 70 ms
71,236 KB
testcase_06 AC 69 ms
71,424 KB
testcase_07 AC 70 ms
71,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N=int(input())
    S=[None]*N
    for i in range(N):
        if i!=N-1:
            S[i]=")"*i+"("*(i+1)
        else:
            S[i]=")"*i
    return S

#==================================================
for S in solve():
    print(S)
0