結果
問題 |
No.2041 E-mail Address
|
ユーザー |
👑 ![]() |
提出日時 | 2022-08-19 21:59:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 394 bytes |
コンパイル時間 | 2,002 ms |
コンパイル使用メモリ | 192,640 KB |
最終ジャッジ日時 | 2025-01-31 01:05:57 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; const ll mod=998244353; #define rep(i,a) for (ll i=0;i<a;i++) void solve(); // oddloop int main() { int t=1; //cin>>t; rep(i,t) solve(); } void solve(){ string S; cin>>S; int J=1; rep(i,(int)(S.size())){ if(S[i]=='('){ J=0; cout<<"@"; } if(J) cout<<S[i]; if(S[i]==')') J=1; } cout<<"\n"; }