No.2041 E-mail Address
レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 293
作問者 : 👑
箱星
/ テスター :
👑
hitonanode
harurun
タグ : / 解いたユーザー数 293
作問者 : 👑
hitonanode
harurun
問題文最終更新日: 2022-08-09 22:11:39
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Show the original
yukicoder contest 357
(順位表)
の他の問題:
Problem Statement
Koboshi's e-mail address is a string $S$. Here, $S$ satisfies the following conditions.
- $S$ consists of lowercase English letters,
., and@. - $S$ contains exactly $1$
@.
Koboshi performed the following operation on $S$ and obtained a new string $T$.
- Choose $1$ string of $0$ or more lowercase English letters. Let $U$ be the string obtained by adding
(to the left end and)to the right end of the chosen string. - Let $T$ be the string obtained by replacing the
@appearing in $S$ with $U$.
Given $T$, find the original string $S$.
Constraints
- $2\le |T|\le 10^5$
- $T$ is a string created by the method described in the problem statement.
Input
$T$
Output
Output $S$.
Sample
Sample 1
Input
koboshi(atmark)inohara.ongeki
Output
koboshi@inohara.ongeki
$U$ is (atmark).
Sample 2
Input
(yuki)coder
Output
@coder
Sample 3
Input
...()...
Output
...@...
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。