시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 31 | 7 | 6 | 23.077% |
Unfortunately , junk messages are very widespread today.
One method of protecting ourselves from spam is to scramble our address when publishing it on the web (or anywhere else) so that programs that automatically search for e-mail addresses won't notice ours.
For this problem, the following holds for valid e-mail addresses:
For example, the addresses 'mama@ta..ta', 'm.am.a@t..a.t..a' and 'm@t' are all valid, while 'ma@', '.@ma.ma', '.mama@tata' i 'ma.ma@tata.tata.' aren't.
We will scramble our address as follows:
Write a program that will, given a scrambled e-mail address, determine all different valid addresses it could have originated from.
The only line of the input will contain a string of at most 100 characters, the scrambled address.
You should write all different valid e-mail address (in any order) that, when scrambled, can give the given scrambled address. Write every address in a separate line.
natva
n@va
a.batc.dnospam
a.b@c.dnospam a.b@c.d
nospammamaattatahr
mamaatt@ahr nospammamaatt@ahr mama@tatahr nospammama@tatahr