ຂໍ້ນີ້ໜ້າສົນໃຈຫຼາຍ ແຕ່ຍັງເຮັດບໍ່ໄດ້ 😆 ໃຜມີ ໄອເດຍ ຂຽນໂປແກມຜ່ານໂຈດນີ້ບໍ່?
nc 2018shell2.picoctf.com 8672
Rules:
() + () = ()() => [combine]
((())) + () = ((())()) => [absorb-right]
() + ((())) = (()(())) => [absorb-left]
(())(()) + () = (())(()()) => [combined-absorb-right]
() + (())(()) = (()())(()) => [combined-absorb-left]
(())(()) + ((())) = ((())(())(())) => [absorb-combined-right]
((())) + (())(()) = ((())(())(())) => [absorb-combined-left]
() + (()) + ((())) = (()()) + ((())) = ((()())(())) => [left-associative]
Example:
(()) + () = () + (()) = (()())
Let's start with a warmup.
()()() + (()(())) = ???