結果

問題 No.3294 UECoder
ユーザー おのせ
提出日時 2025-09-25 20:39:59
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 825 bytes
コンパイル時間 8,086 ms
コンパイル使用メモリ 253,184 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-25 20:40:14
合計ジャッジ時間 14,697 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
#include <iostream>
#include <cmath>
using namespace std;
using namespace atcoder;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<vector<ll>>;
using WGraph = vector<vector<pair<ll, ll>>>;
using mint = modint998244353;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
mt19937_64 rng(58);
long double PI = 3.14159265358979;
const ll LLMAX = 9223372036854775807;
const ll INF = 1e18;
vector<ll> di = {1, 0, -1, 0};
vector<ll> dj = {0, -1, 0, 1};
void chmin(ll& x, ll y) { x = min(x, y);};
void chmax(ll& x, ll y) { x = max(x, y);};

int main() {
    ll n;
    string s;
    cin >> n >> s;

    bool find = false;
    cout << "UEC";
    rep (i, n) {
        if (find) cout << s[i];
        if (s[i] == 'c') find = true;
    }
    cout << endl;
    return 0;
}
0