1 2 3 4 5 6 7 8 9 10 | import re s = input() p = re.compile("\([^()]*\)") count = 1; while count != 0: s, count = p.subn("", s) print(s) |
aW1wb3J0IHJlCgpzID0gaW5wdXQoKQoKcCA9IHJlLmNvbXBpbGUoIlwoW14oKV0qXCkiKQoKY291bnQgPSAxOwp3aGlsZSBjb3VudCAhPSAwOgogICAgcywgY291bnQgPSBwLnN1Ym4oIiIsIHMpCnByaW50KHMp
-
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


