結果

問題 No.2041 E-mail Address
ユーザー V_Melville
提出日時 2022-08-19 21:31:09
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 556 bytes
コンパイル時間 4,765 ms
コンパイル使用メモリ 315,840 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-08 07:38:20
合計ジャッジ時間 5,433 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/extc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)

using std::cin;
using std::cout;
using std::min;
using std::map;
using std::vector;
using std::string;
using ll = long long;

struct Edge {
    int a, b; ll c;
    Edge(int a, int b, ll c=0): a(a), b(b), c(c) {}
};

int main() {
    string s;
    cin >> s;
    
    string ans;
    rep(i, s.size()) {
        if (s[i] == '(') {
            ans += '@';
            while (s[i] != ')') ++i; 
        }
        else ans += s[i];
    }
    
    cout << ans << '\n';
    
    return 0;
}
0