Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0
- 314
- (-7)
- (0+0)
- (314+(-314))
- 01
- -5
- 5+10
- ⁾()j
- p`j”+Ç$€;;”-;ÇƊ€;®‘©¤Ṅ€
- WÇ1¿
- r="(0|[1-9][0-9]*)";c=RegExp;f=e=>(new c(`^${r}$`)).test(e)||(new c(`^\(-${r}\)$`)).test(e)||(_=>{p=/^((.*)+(.*))$/.exec(e);return p?f(p[1])&&f(p[2]):false})()
Add Comment
Please, Sign In to add comment