結果

問題 No.3140 Weird Parentheses Game
ユーザー 回転
提出日時 2025-05-16 21:21:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2025-05-16 21:21:27
合計ジャッジ時間 2,110 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = input()

count = 0
stack = []
for i in S:
    if(i == "("):
        stack.append("(")
    else:
        if(stack):
            count += 1
            stack.pop()

print("First" if count%2 == 1 else "Second")
0