485. Goal Parser Interpretation
EasyString
The command is made of "G", "()" and "(al)". Interpret G as G, () as o and (al) as al, and print the result.
Input format
One string
Output format
The interpretation.
Example 1
Input
G()(al)
Output
Goal
Example 2
Input
G()()()()(al)
Output
Gooooal
Constraints
1 ≤ length ≤ 100
Read input from standard input and print the answer to standard output. Your code is judged against 3 test cases, most of them hidden.
Loading the MyLoginn IDE…