結果
| 問題 | No.3140 Weird Parentheses Game |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2025-05-16 21:28:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 214 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-07-10 17:52:05 |
| 合計ジャッジ時間 | 3,108 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 5 |
ソースコード
N = int(input())
S = input()
a = []
now = 0
for i in S:
if(i == "("):
now += 1
else:
a.append(now)
now = 0
xor = 0
for i in a:
xor ^= i
print("First" if xor != 0 else "Second")
回転