結果

問題 No.2041 E-mail Address
ユーザー niboseanibosea
提出日時 2022-08-19 21:25:24
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 1,358 bytes
コンパイル時間 4,853 ms
コンパイル使用メモリ 254,164 KB
実行使用メモリ 8,448 KB
最終ジャッジ日時 2024-04-17 00:05:36
合計ジャッジ時間 5,358 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
8,192 KB
testcase_01 AC 4 ms
8,156 KB
testcase_02 AC 4 ms
8,436 KB
testcase_03 AC 3 ms
8,380 KB
testcase_04 AC 3 ms
8,272 KB
testcase_05 AC 4 ms
8,388 KB
testcase_06 AC 4 ms
8,288 KB
testcase_07 AC 3 ms
8,256 KB
testcase_08 AC 4 ms
8,220 KB
testcase_09 AC 3 ms
8,320 KB
testcase_10 AC 4 ms
8,276 KB
testcase_11 AC 4 ms
8,448 KB
testcase_12 AC 4 ms
8,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>

using namespace std;
using namespace atcoder;

using ll = long long;
typedef pair<ll,ll> P;
#define SORT(a) sort((a).begin(),(a).end())
#define REV(a) reverse((a).begin(),(a).end())
#define For(i, a, b)    for(ll i = (a) ; i < (b) ; ++i)
#define rep(i, n)       For(i, 0, n)
#define debug(x)  cerr << #x << " = " << (x) << endl;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }

void coY() {cout <<"Yes"<<endl;}
void coN(){cout <<"No"<<endl;}
void coT() {cout <<"Takahashi"<<endl;}
void coA(){cout <<"Aoki"<<endl;}

void mswap(ll &a, ll &b){ if(a >= b) swap(a,b); }
void rswap(ll &a, ll &b){ if(a <= b) swap(a,b); }

const ll dy[] = {0,0,1,-1};
const ll dx[] = {1,-1,0,0};
const ll mod = 1e9+7;
const ll MOD = 998244353;
using mint = modint998244353;
const double PI=3.14159265358979323846;
const ll inf = 1001001001;
const ll INF = 9'000'000'000'000'000'000;

vector<ll> to[200'005];
//Write From this Line
int main()
{
	string T;
	cin >> T;
	bool flag = false;
	rep(i,T.size()){
		if(T[i] == '('){
			flag = true;
			cout << '@';
			continue;
		}
		if(T[i] == ')'){
			flag = false;
			continue;
		}
		if(flag)continue;
		cout << T[i];
	}
	cout << endl;
}
0