結果

問題 No.2143 Only One Bracket
ユーザー cpbm_pcpbm_p
提出日時 2022-11-05 12:31:36
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 1,902 ms
コンパイル使用メモリ 198,980 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-26 12:06:30
合計ジャッジ時間 4,402 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int check_and_get() {
    string str;
    getline(cin, str);
    assert(str.length() == 1);

    int n = stoi(str);
    assert(2 <= n && n <= 8);

    return n;
}

int main() {
    int n = check_and_get();
    assert(n==2);

    cout << "()" << endl;
    cout << endl;
}
0