結果
| 問題 |
No.2041 E-mail Address
|
| コンテスト | |
| ユーザー |
planes
|
| 提出日時 | 2022-08-19 21:22:19 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 435 bytes |
| コンパイル時間 | 1,797 ms |
| コンパイル使用メモリ | 166,984 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-08 07:14:56 |
| 合計ジャッジ時間 | 2,359 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
int main() {
string S;cin>>S;
bool a=false;
for(ll i=0;i<S.size();i++) {
if(S[i]=='(') a=true;
else if(S[i]==')') {
cout<<'@';
a=false;
}
else {
if(!a) cout<<S[i];
}
}
}
planes