#abc344a. A - Spoiler
A - Spoiler
Score: points
问题描述
你将获得一个由小写英文字母和|组成的字符串 。可以确保 中恰好包含两个 |。
移除两个|之间的所有字符,包括这两个|自身,并输出得到的字符串。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a string consisting of lowercase English letters and |. is guaranteed to contain exactly two |s.
Remove the characters between the two |s, including the |s themselves, and print the resulting string.
Constraints
- is a string of length between and , inclusive, consisting of lowercase English letters and
|. - contains exactly two
|s.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
atcoder|beginner|contest
Sample Output 1
atcodercontest
Remove all the characters between the two |s and print the result.
Sample Input 2
|spoiler|
Sample Output 2
It is possible that all characters are removed.
Sample Input 3
||xyz
Sample Output 3
xyz