結果

問題 No.2041 E-mail Address
ユーザー 👑 CleyL
提出日時 2022-08-21 23:36:53
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 717 ms
コンパイル使用メモリ 67,024 KB
最終ジャッジ日時 2025-01-31 02:37:23
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    string s;cin>>s;
    for(int i = 0; s.size() > i; i++){
        if(s[i] == '('){
            while(s[i] != ')')i++;
            cout << "@";
        }else{
            cout << s[i];
        }
    }
    cout << endl;
}
0