結果

問題 No.2460 #強調#
ユーザー 高翊恩
提出日時 2023-09-15 11:38:17
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 394 bytes
コンパイル時間 1,461 ms
コンパイル使用メモリ 166,000 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 15:08:18
合計ジャッジ時間 2,076 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

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

#define int long long
#define fs first
#define sc second
#define mp make_pair
typedef pair<int, int> pii;

string s;

int32_t main() {
    cin.tie(0) -> sync_with_stdio(false);
    bool flag = false;
    cin >> s;
    for (auto &i : s) {
        if (i == '#') flag = !flag;
        else if (flag) cout << i;
    }
    cout << endl;
    return 0;
}
0