結果
| 問題 |
No.3141 Balancing with X=>O Flip
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-16 21:21:26 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 271 bytes |
| コンパイル時間 | 1,857 ms |
| コンパイル使用メモリ | 191,564 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2025-05-16 21:21:32 |
| 合計ジャッジ時間 | 2,790 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 3 WA * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
string s; cin >> s;
int a = 0,b = 0;
for(auto c : s) a += c=='(',b += c==')';
if(a == b) cout << "Yes\n";
else cout << "No\n";
}