結果

問題 No.3140 Weird Parentheses Game
ユーザー robin dey
提出日時 2025-06-02 22:52:13
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 1,100 bytes
コンパイル時間 2,115 ms
コンパイル使用メモリ 196,852 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-06-02 22:52:16
合計ジャッジ時間 3,349 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:51:23: warning: ‘t’ is used uninitialized [-Wuninitialized]
   51 |     for (int i = 0; i < t; i++) {
      |                     ~~^~~
main.cpp:49:9: note: ‘t’ was declared here
   49 |     int t;
      |         ^

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
#define vi vector<ll>
#define vii vector<pair<ll, ll>>
#define pii pair<ll, ll>
#define vll vector<long long int>
using ll = long long int;
#define pb push_back
#define ss second
#define ff first
#define fl(i, n) for (ll i = 0; i < n; i++)
#define fl1(i, n) for (ll i = 1; i < n; i++)
#define flc(a, b) for (ll i = a; i <= b; i++)
#define flr(a, b) for (ll i = a; i >= b; i--)
#define nl "\n"
#define br cout << "\n";
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define mod 998244353
#define inf 1e15

void print(vector<ll> &v)
{
    for (auto x : v)
        cout << x << " ";
    cout << endl;
}

void solve(){
    ll n; cin >> n; 
    string s ; cin >> s;
    
    stack<char> st;

    /*for( auto c : s){
        if(c == '(') st.push(c);
        else st.pop();           
        if(st.empty()) cnt++;
    }*/

    cout << "First\n";
}

int main() {
    // ios_base::sync_with_stdio(false);
    // cin.tie(nullptr);

    int t;
    // cin >> t;
    for (int i = 0; i < t; i++) {
        solve();
    }
    
    return 0;
}
0