紫菜包饭(Korean)是韩国料理,有点像寿司卷。
这是代表朝鲜拌饭的韩国图释: @))))))))))
您的任务是制造ASCII Gimbap切割机。
规则
输入是仅由@
和组成的字符串)
。
输出使用剪切每个有效的Gimbap )
,然后
@
在它们之间添加。因此,例如@))
到@) @)
。
有效紫菜饭以开头,@
后跟任意数量的)
。
如果没有有效的拌饭,则输出为空白。
输入输出
Input | Output
@))))) | @) @) @) @) @)
@))))))) | @) @) @) @) @) @) @)
@))@))) | @) @) @) @) @)
@) | @)
)) |
@ |
@@)@@@))) | @) @) @) @)
@)@)@)) | @) @) @) @)
@@@)) | @) @)
))@) | @)
获奖条件
这是代码高尔夫球,因此最短的代码获胜。
从沙盒
它是。输出可以包含尾随空格。
—
LegenDUST
我们必须输出一个以空格分隔的字符串还是可以输出一个切片数组?另外,我们是否限于这两个字符,还是可以使用我们选择的任何两个字符?
—
毛茸茸的
我第一次尝试阅读标题“金普蝙蝠混乱?什么?”
—
Draco18s
@)
每输出一个副本,)
不计算任何副本@
?我们的输出是否可以包含尾随空格,例如"@) @) "
?