結果

問題 No.3294 UECoder
ユーザー toufu24
提出日時 2025-10-05 13:31:38
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 601 bytes
コンパイル時間 4,216 ms
コンパイル使用メモリ 335,012 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-05 13:31:53
合計ジャッジ時間 5,002 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

#define all(v) v.begin(), v.end()
#define SORT(v) sort(v.begin(), v.end())
#define RSORT(v) sort(v.rbegin(), v.rend())
#define REVERSE(v) reverse(v.begin(), v.end())
#define ll long
#define ld long double

#define int ll

int32_t main() {
    int n;
    cin >> n;
    string s;
    cin >> s;
    cout << "UEC";
    bool ok = false;
    for (int i = 0; i < n; i++) {
        if (ok) {
            cout << s[i];
        }
        if (s[i] == 'c') {
            ok = true;
        }
    }
    cout << endl;
}
0