結果
問題 |
No.3294 UECoder
|
ユーザー |
![]() |
提出日時 | 2025-10-05 13:36:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 2,154 bytes |
コンパイル時間 | 1,606 ms |
コンパイル使用メモリ | 195,376 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-10-05 13:37:35 |
合計ジャッジ時間 | 2,546 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> #define MAP(BODY) Map([](auto const X1) { return BODY; }) #define vec(N, I) make_vec(N, I) #define rep(i, n) for (int i = 0; i < (int)(n); i++) template <class N, class T> std::vector<T> make_vec(N n, T i) { return std::vector<T>(n, i); } template <class A, class F> auto operator|(const A &a, const F &f) { return f(a); } template <class T> std::ostream &operator<<(std::ostream &os, const std::vector<T> &vec) { os << "["; const size_t vec_len = vec.size(); if (vec_len > 0) { for (int i = 0; i < vec_len - 1; i++) { os << vec[i] << ',' << ' '; } os << vec[vec_len - 1]; } os << "]\n"; return os; } template <class T> std::ostream &operator<<(std::ostream &os, const std::set<T> &vec) { os << "{"; auto i = vec.begin(); while (i != vec.end()) std::cout << *i++ << ","; os << "\b}"; return os; } template <class T, class A> std::ostream &operator<<(std::ostream &os, const std::vector<std::pair<T, A>> &vec) { os << '{'; vec | MAP(({ std::cout << "<" << X1.first << "," << X1.second << ">" << std::endl, X1; })); os << "}\n"; return os; } template <class A, class B> std::ostream &operator<<(std::ostream &os, const std::pair<A, B> &tar) { os << '<' << tar.first << ',' << tar.second << '>' << std::endl; return os; } auto print = [](const auto a) { std::cout << a << std::endl; return a; }; template <class F> auto Map(F f) { return [=](const auto &ma) { return map_instance(f, ma); }; } template <class F, class A> auto map_instance(F f, const std::vector<A> &vec) { using R = typename std::result_of<F(A)>::type; int size = vec.size(); std::vector<R> result(size); for (int i = 0; i < size; i++) { result[i] = f(vec[i]); } return result; } using namespace std; typedef long long int ll; typedef unsigned long long int ull; typedef unsigned long long int ull; typedef pair<ll, ll> pll; typedef pair<ull, ull> pull; typedef pair<int, int> pi; int N; string S; int main() { cin >> N >> S; for (int i = 0; i < S.length(); i++) { if (S[i] == 'c') { "UEC" + S.substr(i+1, S.length()) | print; break; } } }