1 2 3 4 5 6 7 8 9 10
import re s = input() p = re.compile("\([^()]*\)") count = 1; while count: s, count = p.subn("", s) print(s)
You have reached a limit of free submissions this month.
You cannot send submissions this month anymore because of exceeding your monthly limit. Please recharge your account.
the submission is still running...
- upload with new input
result: Success time: 0.02s memory: 5864 kB returned value: 0
result: Success time: 0.02s memory: 5864 kB returned value: 1
Traceback (most recent call last): File "prog.py", line 3, in <module> s = input() EOFError: EOF when reading a line